XCode 4.3 に上げたら brew install ができなくなった
brew install に失敗すると、親切にも過去ログへのリンクをリストアップしてくれるが、全く解決にならず途方にくれた。
Error: Failed executing: ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/libelf/0.8.13 (libelf.rb:9) These existing issues may help you: https://github.com/mxcl/homebrew/issues/11943 Otherwise, please report the bug: https://github.com/mxcl/homebrew/wiki/reporting-bugs We saved the configure log, please gist it if you report the issue: ~/Library/Logs/Homebrew/config.log
でもよく見ると最後に config.log を保存しているとある。
config.log を見ると、こうある。
ld: library not found for -lcrt1.10.6.o
Cランタイムがないって? XCodeはちゃんと動いてますがなぜに?
……結局、XCodeのPreferencesを開き、Downloadsタブから Command Line Tools をインストールしたらbrewできた。