Actions
Bug #15585
closedRuby 2.6.0p0 incompatible with google-protobuf C extensions
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
Description
I discovered following this guide: https://grpc.io/docs/tutorials/basic/ruby.html#example-code-and-setup
The minimal setup to reproduce the error is the following:
- install Ruby 2.6.0p0 and make it active (ex:
rbenv install 2.6.0
, thenrbenv local 2.6.0
) - gem install google-protobuf
- ruby -e "require 'google/protobuf'"
My output:
Traceback (most recent call last):
2: from -e:1:in `<main>'
1: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- google/protobuf (LoadError)
6: from -e:1:in `<main>'
5: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
4: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
3: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
2: from ~/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/google-protobuf-3.6.1-x86_64-linux/lib/google/protobuf.rb:48:in `<top (required)>'
1: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- google/2.6/protobuf_c (LoadError)
7: from -e:1:in `<main>'
6: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
5: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
4: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
3: from ~/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/google-protobuf-3.6.1-x86_64-linux/lib/google/protobuf.rb:47:in `<top (required)>'
2: from ~/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/google-protobuf-3.6.1-x86_64-linux/lib/google/protobuf.rb:50:in `rescue in <top (required)>'
1: from ~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
~/.rbenv/versions/2.6.0/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- google/protobuf_c (LoadError)
Updated by adrianomitre (Adriano Mitre) almost 6 years ago
Please disregard: https://github.com/protocolbuffers/protobuf/issues/5161
Updated by shyouhei (Shyouhei Urabe) over 5 years ago
- Status changed from Open to Third Party's Issue
Actions
Like0
Like0Like0