LoginSignup
2
0

More than 5 years have passed since last update.

Mac(Mojave)でRails5.2系/Ruby2.6系で cannot load such file -- google/protobuf_c (LoadError) エラー

Posted at

背景

ローカルMac(Mojave)でRails5.2系/Ruby2.6系。 rails generate migration しようとしたら以下のエラー

bin/rails: Bootsnap::LoadPathCache::FallbackScan
.
.
/Users/xxx/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': cannot load such file -- google/protobuf_c (LoadError)

やったこと

Gemfileに以下を gem "google-protobuf", "3.7.0.rc.2" を追加。3.6系はrubyの2.6系に対応してないらしい。

参考: https://github.com/protocolbuffers/protobuf/issues/3509#issuecomment-462537872

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