0

Keep getting this error:

Could not find rake-10.1.1 in any of the sources (Bundler::GemNotFound)
/home/tristan/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'

And I have my profile as such:

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM:

and whereis ruby gives me:

/usr/bin/ruby /usr/lib/ruby /usr/share/man/man1/ruby.1.gz

But I get the error that it's looking for ruby within tristan/.rvm/....

Any suggestions to have to change it to look for the usr rvm ruby?

Thanks!

tristan@kindidata:~/Kindidata$ bundle exec ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

and

tristan@kindidata:~/Kindidata$ bundle show rake
/home/tristan/Kindidata/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1

Also, why is the error from passenger looking for 1.9.3@global?!

Mohamed El Mahallawy
  • 13,024
  • 13
  • 52
  • 84

3 Answers3

1

Actually, you have specified somewhere invalid version of , these places usually are: .ruby-version, Gemfile, .rvmrc. Verify all of these, and change all occurinces of to 2.0.0. Then reenter into the folder, and make sure that rvm info returns proper version of . i.e. 2.0.0p247:

rvm info|grep 'ruby:' -A 3 |grep 'version:'
    version:      "2.0.0p247"
Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69
0

Try this:

bundle install --path vendor/bundle

If that works then something is probably wrong with your rvm gem env variables.

Mike S
  • 11,329
  • 6
  • 41
  • 76
0

create .ruby-version file in your app folder with the below line

2.0.0p247
Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69
santosh
  • 1,611
  • 1
  • 13
  • 21