rails使いがみんな頭を抱えている、libv8とtherubyracerのインストールが上手く行かなくなる問題。今回の対応はこうらしいです。
brew tap homebrew/versions
brew uninstall v8
brew install v8-315
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8-315)
bundle update
Installing libv8 3.16.14.13 with native extensions
Installing therubyracer 0.12.1 with native extensions
以上。
追記 bundle config localを使おう
こっちのほうがいい気がしてきた。
brew tap homebrew/versions
brew uninstall v8
brew install v8-315
bundle config --local build.libv8 --with-system-v8
bundle config --local build.therubyracer --with-v8-dir=$(brew --prefix v8-315)
bundle update
余談:より抜本的な対応
Dockerが直接動くようになるそうだから、もうMac上でrails動かすのは諦めちゃったほうがいいのかもしれない。
Docker for Mac and Windows Beta: the simplest way to use Docker on your laptop