0

I have a problem install ruby 1.9.2 on debian using rvm.

The install goes fine, and when i type

rvm use 1.9.2

then it says:

Using /usr/local/rvm/gems/ruby-1.9.2-p180

but when I type

ruby -v

I get

ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

2
  • Is that in the exact same shell? Oct 23, 2011 at 0:44
  • "ruby" installed at multiple locations? What does # whereis ruby return?
    – korkman
    Oct 23, 2011 at 14:00

2 Answers 2

1

just put the rvm path of ruby in front of your path in .bashrc or whatever file you use...

export PATH=$PATH_TO_RVM_RUBY:$PATH

2
  • I have tried this, but it didn't make any difference
    – jonepatr
    Oct 24, 2011 at 4:54
  • You certainly have to load the new environment... Means => spawn a new shell, or get an entire new login session.
    – mober
    Oct 25, 2011 at 0:06
0

Can you paste the results of rvm info please?

Did you add the oneliner to your ~/.bashrc or ~/.bash_profile then open a new shell per the post install instructions?

It would be something like this:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

Did you do the single user install or system wide?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .