OS X 10.11 El Capitan + Xcode7 + Homebrew


App Store から Xcode7 をインストール。
Xcodeのメニューから Open Developer Tool > More Developer Tools を選択。
そこからXcodeのバージョン(7.x)に合わせた Command Line Tools をダウンロード・インストール。

Homebrew の再インストール

$ rm -rf /usr/local/.git
$ brew cleanup
$ ruby -e "$(curl -fsSL"


% /usr/bin/otool -L /usr/bin/install_name_tool 

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

% sudo /usr/bin/otool -L /usr/bin/install_name_tool

You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/'

Apple Inc.

Xcode and Apple SDKs Agreement


By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to 
print them or anything else to cancel, [agree, print, cancel] agree

You can view the license agreements in Xcode's About Box, or at /Applications/

		/usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0)
		/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)


Apple Developer - Xcode

superuser - Homebrew doesn't install new apps in El Capitan

reddit - OS XRootless feature IS in OS X 10.11, and it disallows modifying system files and breaks Homebrew

Qiita - MacBookをEl Capitanにして新しくセットアップする3