Bug #8482
closednative rake gem has broken path
Description
which rake
has the result /usr/bin/rake but when I try
rake
it fails with the following error
/usr/bin/rake:23:in load': cannot load such file -- /usr/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake (LoadError) from /usr/bin/rake:23:in
'
gem list rake shows two versions of rake.
*** LOCAL GEMS ***
rake (0.9.6, 0.8.7)
However, when I run 'gem uninstall rake' it directly uninstalls rake-0.8.7. Rake 0.9.6 is obviously a native packaged gem. The issue is /usr/bin/rake points to the wrong rake. Installing and uninstalling rake 0.9.6 does not fix it.
When I was trying to install ruby-debug-ide-0.4.17.beta16, it was failing because it was not able to load rake.
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
/usr/bin/ruby mkrf_conf.rb
"/usr/bin/ruby" -rubygems /usr/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake RUBYARCHDIR=/usr/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.17.beta16/lib RUBYLIBDIR=/usr/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.17.beta16/lib
/usr/bin/ruby: No such file or directory -- /usr/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake (LoadError)
Gem files will remain installed in /usr/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.17.beta16 for inspection.
Results logged to /usr/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.17.beta16/ext/gem_make.out
Also, strangely enough, /usr/lib/ruby/gems/2.0.0/gems/rake-0.8.7/bin/rake -V returns the following rake, version 0.9.6.
Updated by zzak (zzak _) over 11 years ago
- Category changed from platform/linux to lib
- Status changed from Open to Assigned
- Assignee changed from linux to drbrain (Eric Hodel)
- Priority changed from 5 to Normal
Assigning to Eric, since it wouldn't let me assign it to Jim?
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Assigned to Closed
- Backport deleted (
1.9.3: UNKNOWN, 2.0.0: UNKNOWN)