Search code examples
ruby-on-railsrubyrubygemsrakebundler

rake cannot load such file (LoadError)


I'm having a strange rake error when I try to install, here is what it says

$ rake bundle_install
/usr/local/bin/rake:23:in `load': cannot load such file -- /usr/share/rubygems-integration/1.9.1/gems/rake-10.0.4/bin/rake (LoadError)
        from /usr/local/bin/rake:23:in `<main>'

When I try to navigate to the directory, i find nothing:

$ ls /usr/share/rubygems-integration/1.9.1/
specifications/

Ruby versions:

$ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

Why it's trying to load the wrong version and how I could fix this?


Solution

  • It seems that you need to re-install ruby..Hopefully that might solve the problem.Had faced this issue previously.Resolved by reinstalling ruby.