Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not install gem if installed rake is installed without documents #29

Open
func0der opened this issue Jul 8, 2021 · 1 comment
Open
Labels

Comments

@func0der
Copy link

func0der commented Jul 8, 2021

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?

@postmodern
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants