Mac OS X 10.9 Mavericksで開発環境を整える(Homebrew編)
新しいMacBook Pro(Mac OS X 10.9 Mavericks)を買ったので,環境構築手順をメモ.
今回はHomebrewを使えるようにするまで.
前準備
$ xcode-select --install
インストール
下記のコマンドでインストール
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
インストールの確認
次のコマンドでちゃんとインストールできているかチェック
$ brew doctor
次のような警告が出た.
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
Warning: You have not agreed to the Xcode license.
Builds will fail! Agree to the license by opening Xcode.app or running:
xcodebuild -license
警告どおりにApp Storeでソフトウェアのアップデート. その後次のコマンドでXcodeのライセンスに同意する.
$ xcode build -license
利用規約が表示され,最後に,
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'を入力してEnter 再びbrew doctorを実行
$ brew doctor Your system is ready to brew.
OKっぽい.