6
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

An error occurred while installing libv8 (3.16.14.19), and Bundler cannot continue

Posted at

bundle install しようとした時に libv8 でエラー
自分の環境では下記の手順で bundle install が通ったので、メモ。

  • エラー

An error occurred while installing libv8 (3.16.14.19), and Bundler cannot continue.Make sure that `gem install libv8 -v ‘3.16.14.19’ —source
  • rbenvにbundleをインストール

「libv8とtherubyracerが入らない時の対処法」をやっても入らないとき - Qiita

bundleがrbenv内のgemを使っていないとbundle installが通らないので、rbenvにbundleをインストール

  • 下記のコマンドを実行

macOS Mojaveで古いlibv8とtherubyracerが入らない時の対処法 - Qiita

brew install v8-315
bundle config --local build.libv8 --with-system-v8
bundle config --local build.therubyracer --with-v8-dir=$(brew --prefix v8-315)

さらにエラーがでた

An error occurred while installing mysql2 (0.4.10), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.4.10' --source 'https://rubygems.org/'` succeeds before bundling.

LIBRARY_PATH の変更


export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/

一応これで bundle install が通った。

6
0
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
6
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?