You are not logged in.
I'm trying to understand why I'm getting this error when running gem update:
Updating installed gems
Updating net-pop
Building native extensions. This could take a while...
ERROR: Error installing net-pop:
ERROR: Failed to build gem native extension.
current directory: /home/brightchip/.gem/ruby/2.7.0/gems/digest-3.0.0/ext/digest
/usr/bin/ruby -I /usr/lib/ruby/2.7.0 -r ./siteconf20210113-639621-5rxmfr.rb extconf.rb
creating Makefile
current directory: /home/brightchip/.gem/ruby/2.7.0/gems/digest-3.0.0/ext/digest
make "DESTDIR=" clean
current directory: /home/brightchip/.gem/ruby/2.7.0/gems/digest-3.0.0/ext/digest
make "DESTDIR="
compiling digest.c
linking shared-object digest.so
current directory: /home/brightchip/.gem/ruby/2.7.0/gems/digest-3.0.0/ext/digest
make "DESTDIR=" install
/usr/bin/install -c -m 0755 digest.so ./.gem.20210113-639621-1kv3df0
installing digest libraries
/usr/bin/install: cannot create regular file '/usr/include/ruby-2.7.0/ruby/digest.h': Permission denied
make: *** [Makefile:204: /usr/include/ruby-2.7.0/ruby/digest.h] Error 1
make install failed, exit code 2
It's probably harmless but I always like to understand why I get errors.
Here is the output of gem env:
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/2.7.0
- USER INSTALLATION DIRECTORY: /home/brightchip/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /usr/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /home/brightchip/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/2.7.0
- /home/brightchip/.gem/ruby/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--user-install"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/sbin
- /usr/local/bin
- /usr/bin
- /opt/cuda/bin
- /opt/cuda/integration/nsight-compute
- /opt/cuda/integration/nsight-systems
- /usr/lib/jvm/default/bin
- /usr/bin/site_perl
- /usr/bin/vendor_perl
- /usr/bin/core_perl
- /home/datapool/bin
- /opt/cuda/bin
- /home/brightchip/.gem/ruby/2.7.0/bin
- /home/brightchip/.local/bin
Any thoughts or solution?
Offline