Moutain LionをインストールしたのでHomebrewをインストールする

1. Xcodeをインストール。


2. Xcodeを起動して
Preference -> Downloads -> Components -> Command Line Tools -> install
を実行してcc等をインストール。


3. X11http://xquartz.macosforge.org/landing/ から
XQuartz をダウンロードしてインストール。


4. Terminal から下記のようにしてインストール終了。

$ ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...

Press enter to continue
==> Downloading and Installing Homebrew...
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help
$ brew doctor
Your system is raring to brew.
$ brew install git
==> Downloading http://git-core.googlecode.com/files/git-1.7.11.3.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.11.3 CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=1
==> make CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 LDFLAGS=-L/usr/local/lib
==> make clean
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.7.11.3.tar.gz
######################################################################## 100.0%
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.7.11.3.tar.gz
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

The OS X keychain credential helper has been installed to:
  /usr/local/bin/git-credential-osxkeychain

The 'contrib' directory has been installed to:
  /usr/local/share/git-core/contrib
==> Summary
/usr/local/Cellar/git/1.7.11.3: 1204 files, 23M, built in 36 seconds
$ brew update
Initialized empty Git repository in /usr/local/.git/
remote: Counting objects: 74152, done.
remote: Compressing objects: 100% (36615/36615), done.
remote: Total 74152 (delta 50163), reused 58258 (delta 36727)
Receiving objects: 100% (74152/74152), 10.59 MiB | 733 KiB/s, done.
Resolving deltas: 100% (50163/50163), done.
From https://github.com/mxcl/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
 * [new branch]      master     -> origin/master
HEAD is now at 1cd31e9 ace: update to 6.1.3 and fix Mountain Lion build.
Already up-to-date.