LoginSignup
4
3

More than 5 years have passed since last update.

EI Capitan(10.11.4), XCode 7.3 でlibv8

Last updated at Posted at 2016-03-27

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

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3