memo.xight.org

日々のメモ

OS X 10.11 El Capitan + Xcode7 + Homebrew

Summary

App Store から Xcode7 をインストール。
Xcodeのメニューから Open Developer Tool > More Developer Tools を選択。
Safariでダウンロードできるツール一覧が表示されるので、
そこからXcodeのバージョン(7.x)に合わせた Command Line Tools をダウンロード・インストール。

Homebrew の再インストール

$ rm -rf /usr/local/.git
$ brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Xcodeのライセンス確認

% /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.


rootでないとsudoを使えと促される
% sudo /usr/bin/otool -L /usr/bin/install_name_tool
Password: 


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/Xcode.app/Contents/Resources/English.lproj/License.rtf'


Apple Inc.

Xcode and Apple SDKs Agreement

[snip…]

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/Xcode.app/Contents/Resources/English.lproj/License.rtf

/usr/bin/install_name_tool:
		/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)


Reference

Apple Developer - Xcode
https://developer.apple.com/xcode/download/

superuser - Homebrew doesn't install new apps in El Capitan
https://superuser.com/questions/940874/homebrew-doesnt-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
https://www.reddit.com/r/apple/comments/3994os/rootless_feature_is_in_os_x_1011_and_it_disallows/

Qiita - MacBookをEl Capitanにして新しくセットアップする3
http://qiita.com/marmot1123/items/688adc739eacf67ddb7d

Mac OS X El Capitan のUSBインストールメディア作成

Summary

App Store から El Capitan をダウンロード。

$ sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction


Optionキーを押しながらMacを再起動する
Boot DeviceでUSBのメディアを選択

Reference

Qiita - 2015-10-01 - elcapitan - Mac OS X El Capitan(OS X 10.11)のインストールUSB作成方法
http://qiita.com/kei-yamazaki/items/c9bdbb50fbf3950edf50