Open stefanandres opened 6 years ago
same issue.
@stefanandres @marcosanfilippo
Trying gem update --system
might help you. This worked for me.
/ # gem -v
2.7.6
/ # gem install grpc
Fetching: google-protobuf-3.6.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed google-protobuf-3.6.1
Fetching: googleapis-common-protos-types-1.0.2.gem (100%)
Successfully installed googleapis-common-protos-types-1.0.2
Fetching: grpc-1.15.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing grpc:
ERROR: Failed to build gem native extension.
current directory: /usr/lib/ruby/gems/2.5.0/gems/grpc-1.15.0/src/ruby/ext/grpc
/usr/bin/ruby -r ./siteconf20181010-18-1puk867.rb extconf.rb
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- etc (LoadError)
current directory: /usr/lib/ruby/gems/2.5.0/gems/grpc-1.15.0/src/ruby/ext/grpc
/usr/bin/ruby -r ./siteconf20181010-81-tyqyjy.rb extconf.rb
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- etc (LoadError)
from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from extconf.rb:15:in `<main>'
extconf failed, exit code 1
/ # gem update --no-document --system
Updating rubygems-update
Successfully installed rubygems-update-2.7.7
Installing RubyGems 2.7.7
Bundler 1.16.2 installed
RubyGems 2.7.7 installed
Regenerating binstubs
=== 2.7.7 / 2018-05-08
Minor enhancements:
* [RequestSet] Only suggest a gem version with an installable platform.
Pull request #2175 by Samuel Giddins.
* Fixed no assignment variables about default gems installation. Pull
request #2181 by SHIBATA Hiroshi.
* Backport improvements for test-case from Ruby core. Pull request #2189
by SHIBATA Hiroshi.
* Fix ruby warnings in test suite. Pull request #2205 by Colby Swandale.
* To use Gem::Specification#bindir of bundler instead of hard coded path.
Pull request #2208 by SHIBATA Hiroshi.
* Update gem push --help description. Pull request #2215 by Luis
Sagastume.
* Backport ruby core commits. Pull request #2264 by SHIBATA Hiroshi.
Bug fixes:
* Frozen string fix - lib/rubygems/bundler_version_finder.rb. Pull request
#2115 by MSP-Greg.
* Fixed tempfile leak for RubyGems 2.7.6. Pull request #2194 by SHIBATA
Hiroshi.
* Add missing requires. Pull request #2196 by David Rodríguez.
* Fix Gem::Version.correct?. Pull request #2203 by Masato Nakamura.
* Fix verify_entry regex for metadata. Pull request #2212 by Luis
Sagastume.
* Fix path checks for case insensitive filesystem. Pull request #2211 by
Lars Kanis.
Compatibility changes:
* Deprecate unused code before removing them at #1524. Pull request #2197
by SHIBATA Hiroshi.
* Deprecate for rubygems 3. Pull request #2214 by SHIBATA Hiroshi.
* Mark deprecation to `ubygems.rb` for RubyGems 4. Pull request #2269 by
SHIBATA Hiroshi.
* Update bundler-1.16.2. Pull request #2291 by SHIBATA Hiroshi.
RubyGems system software updated
/ # gem -v
2.7.7
/ # gem install grpc --no-document
Successfully installed grpc-1.15.0-x86_64-linux
1 gem installed
Installing grpc fails because somewhy gem install grpc
does not use use precompiled extensions.
Updating gem itself may solve this problem.
See this issue for further information https://github.com/grpc/grpc/issues/6525
Yes, that works. Thanks.
Though then the alpine's gem version should be updated to gem-2.7.7 from gem-2.7.6
I had issues with alpine 3.9, gem 3.0.3 and grpc 1.19. I could gem install grpc 1.21 no problem but I couldn't get it to update in the context of having a gemfile despite running bundle update stackdriver
. I've removed stackdriver from the gemfile and will report back if I find a way to reinstall it.
When using the 3.8 image, gem install grpc fails. The same command worked in 3.7