System: Ubuntu 10.10 x64, Ruby: 1.9.2-p136
My paths seem to be ok, e.g.
ruby -r rubygems -e "p Gem.path"
=>
["/home/myaccount/.rvm/gems/ruby-1.9.2-p136",
“/home/myaccount/.rvm/gems/[email protected]”]
gem -v
=> 1.3.7
gem list
=> (list of the gems I have installed)
When I try to run some executable, e.g. rails, interpreter can’t find
it.
rails -v
=> The program ‘rails’ is currently not installed. You can
install it by typing: sudo apt-get install rails
But when I type rvm 1.9.2
and try again, everything works normally,
i.e. rails -v
=> Rails 3.0.3
I have set 1.9.2 as default by rvm --default use 1.9.2
.
Also one thing, when typing rvm list
I get
rvm rubies
jruby-1.5.5 [ amd64-java ]
ruby-1.9.2-p136 [ x86_64 ]
But after typing rvm 1.9.2
I get
rvm rubies
jruby-1.5.5 [ amd64-java ]
=> ruby-1.9.2-p136 [ x86_64 ]
In both cases I can run ruby, but only in the latter one ruby can find
gems and I can run gem executables.