digest-crc
digest-crc copied to clipboard
Does not install gem if installed rake is installed without documents
If I call
gem install --no-document rake
gem install digest-crc
Output:
ERROR: Error installing digest-crc:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/digest-crc-0.6.3/ext/digest
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.3 RUBYLIBDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.3
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/digest-crc-0.6.3 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.3/gem_make.out
It is important that you NEVER had rake
installed with documents, because it somehow remembers them somewhere even after gem uninstall rake
.
Also I do not know, why exactly this happens. I thought I would not need rake
to build this extension, if I have gcc
and make
installed on Debian.
Can you reproduce this behavior?
I cannot reproduce using stock ruby-2.5.9.
It is interesting that it found /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake
but it cannot execute the file? Can you run the rake
command or specifically the /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake
file?