1.準備
1)Javaのインストール確認
2)Xcode:Command Line Tools のインストール確認
2.Homebrewインストール
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
3.インストール
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
4.動作チェック
brew doctor
5.問題1
Warning: Unbrewed dylibs were found in /usr/local/lib.
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
sudo rm /usr/local/lib/libmacfuse_i32.2.dylib
sudo rm /usr/local/lib/libmacfuse_i64.2.dylib
sudo rm /usr/local/lib/libosxfuse_i32.2.dylib
sudo rm /usr/local/lib/libosxfuse_i64.2.dylib
sudo rm /usr/local/lib/libosxfuse_i32.la
sudo rm /usr/local/lib/libosxfuse_i64.la
sudo rm /usr/local/lib/pkgconfig/osxfuse.pc
6.問題2
Warning: Broken symlinks were found. Remove them with brew prune
:
brew prune
7.Command Line Toolのエラー対応
ライセンス同意
sudo xcodebuild -license
8.Homebrewのアップデート
brew update
9.Homebrewのパッケージアップグレード
brew upgrade