MacをMavericksにアップデートしたらbundleがこけた
MacをMavericksにアップデートした後、新規Railsプロジェクトを作ろうと思ったらbundle installでこけるようになった。
(rubyはbrewで入れたrbenvで管理しています)
$bundle install --path vendor/bundle
〜
An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.
ググってみると、どうもgccとかいうのが古いせいでatomicがビルドできないみたい。
でgccはbrewで入れるものらしいので、じゃあupdateだと思ってやってみたらこけた。
$brew update
$brew upgrade
Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.
Warning: You have not agreed to the Xcode license.
こっから先はあまり覚えてないのだが、上に書いてある'xcode-select --install'
とかをやってたらできたw
brew doctorが通るようになれば大丈夫でしょう。
あ、最初はbrew doctorが通らなくて以下のようなエラーが出たので
言われるままにsudo brew pruneを実行したらbrew doctorが通るようになりました。
Warning: Broken symlinks were found. Remove them with `brew prune`:
〜
$sudo brew prune
$brew doctor
Your system is ready to brew.
$bundle install --path vendor/bundle
〜
Your bundle is complete!
It was installed into ./vendor/bundle
無事成功!!
結局これは、Xcodeがアップデートされたからまた色々設定し直さなきゃいけなかった、ということなのかな?
Mac道は厳しい・・・。
てかいいかげんretinaのMBA出してくださいw