bundle install しようとしたらlibv8のインストールでこける。
エラーを見るとlibv8, mini_racerのインストールで引っかかってるみたい。
環境
- macOS High Sierra
- ruby 2.4.0
- Rails 5.1.0
エラー内容
$ bundle install
...
An error occurred while installing mini_racer (0.1.9), and Bundler cannot continue.
Make sure that `gem install mini_racer -v '0.1.9'` succeeds before bundling.
In Gemfile:
mini_racer
対処法
Gemfile.lockを直接編集してlibv8とmini_racerのバージョンを上げた。
Gemfile.lock
// 変更前
- mini_racer (0.1.9)
- libv8 (~> 5.3)
// 変更後
+ mini_racer (0.1.14)
+ libv8 (~> 5.9)
結果
OK!
$ bundle install
...
Bundle complete!