LoginSignup
12
15

More than 3 years have passed since last update.

bundle installで躓いた話

Last updated at Posted at 2019-01-05

railsでbundle installするとエラーが出た

※今回は特殊ケースだったので多くの人に該当するものであるかはわかりません。
今後の人のためのメモです。

エラー

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.

Fetching gem metadata from https://rubygems.org/./Users/user_name/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/compact_index_client/updater.rb:111: [BUG] Segmentation fault at 0x00000000000000

// 色々出た

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

怪しいところ

  • gemfile.lock
  • gemfiletzinfo-data

解決

参考 GitHub

  1. gemfile.lockを削除する
  2. gemのtzinfo-dataのオプションを削除

こいつを

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

こうする

gem 'tzinfo-data'

その後bundle install

もしできなかったらbundle updateを実施する。

12
15
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
12
15