RVM can't find executables

P

Petri Kivikangas

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/ruby-1.9.2-p136@global"]
`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.
 
P

Petri Kivikangas

Nevermind, solved the problem by removing $HOME/.rvm/bin from my path.
It seems that RVM couldn't set paths right because I had the path set in
bashrc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top