LoginSignup
4
2

More than 5 years have passed since last update.

jsonのインストール→bundle installでコケ続ける時にやった対処法

Last updated at Posted at 2018-04-05

状況

Vagrant+CentOSの中で、Railsの開発環境を作っている途中で

bundle install --path vendor/bundle

としたところ

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

(中略)
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.

と言われたので素直に

gem install json -v '1.8.3'

としてみて再度

bundle install --path vendor/bundle

としたものの、上記エラーを解決することが出来ず。

bundler更新したり、Gemfile.lockを削除してみたり、直接Gemfile編集してみたりしましたが直らず。。。

色々調べてみて、 こちらを参考に

bundle install --path ~/ここにプロジェクト名/vendor/bundle

としたところ、無事にinstallされて先に進むことができました。

4
2
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
2