native rake gem has broken path
which rake has the result /usr/bin/rake but when I try
it fails with the following error
load': cannot load such file -- /usr/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake (LoadError)'
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" -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.
#1 [ruby-core:55898] Updated by zzak (Zachary Scott) about 4 years ago
- Category changed from platform/linux to lib
- Status changed from Open to Assigned
- Assignee changed from cruby-linux to drbrain (Eric Hodel)
- Priority changed from 5 to Normal
Assigning to Eric, since it wouldn't let me assign it to Jim?