Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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]

share|improve this question
    
Is that in the exact same shell? –  Martijn Heemels Oct 23 '11 at 0:44
    
"ruby" installed at multiple locations? What does # whereis ruby return? –  korkman Oct 23 '11 at 14:00

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
    
I have tried this, but it didn't make any difference –  jonepatr Oct 24 '11 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 '11 at 0:06

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?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.