初めてのBrew


Brewってwap端末の開発環境って思ってる人は結構なツウなひとで
今はmacインストーラのことだそうです
CentOSyumみたいなもんですね

初めて入れてみましたが簡単でした
っていうかbrewの公式ページ1枚目に書いてありますんで
こんな記事必要はないですw

$ brew install wget
-bash: brew: command not found

もちろん無いですw

インストールをキメます

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin

Press ENTER to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin
Password:
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin
==> Downloading and Installing Homebrew...
remote: Counting objects: 123794, done.
remote: Compressing objects: 100% (60882/60882), done.
remote: Total 123794 (delta 87042), reused 96047 (delta 61928)
Receiving objects: 100% (123794/123794), 19.56 MiB | 255 KiB/s, done.
Resolving deltas: 100% (87042/87042), done.
From https://github.com/mxcl/homebrew
 * [new branch]      master     -> origin/master
HEAD is now at e35547d jenkins 1.527
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help

wgetは無いのを確認して・・

$ wget
-bash: wget: command not found


華麗にbrewwgetインスコ

$ brew install wget
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://ftpmirror.gnu.org/wget/wget-1.14.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/wget/1.14 --sysconfdir=/usr/local/etc
==> make install
🍺  /usr/local/Cellar/wget/1.14: 8 files, 708K, built in 85 seconds

ソースをDLしてインストールするのね


で、wgetは入りました

$ wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.


これでmac道が一歩進みました
(って何年mac触ってるんだよwww)