« User Commenting Change | Main | ZeroMQ Info Roundup »
Tuesday
Oct192010

Using RVM on Ubuntu 10.10

I wanted to use RVM for some testing with Ubuntu 10.10 last night.  Not one set of instructions I found around the web would work.  At the end of the day it was actually something rather simple; a path issue.

As the documentation clearly points out, you need to make a couple of modifications to your .bashrc script for things to work properly.

Here is what all the instructions say to past at the end:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.

 

Here is what you really have to paste at the end:

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

                             ^^^^^                                                     ^^^^^

Notice the path differences.  I have no idea why this is the case but it is.  I had the same issue on previous Ubuntu version as well though.  Well, this cost me a little bit of time but once I made that change along with the other documented changes everything has been just peachy.

 

root@mavrvm:~# rvm --default 1.8.7
root@mavrvm:~# ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
root@mavrvm:~# rvm --default 1.9.2
root@mavrvm:~# ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
root@mavrvm:~# 

root@mavrvm:~# rvm --default 1.8.7root@mavrvm:~# ruby -vruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]root@mavrvm:~# rvm --default 1.9.2root@mavrvm:~# ruby -vruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]root@mavrvm:~# 

 

EmailEmail Article to Friend

Reader Comments (4)

"$HOME/.rvm/src/rvm/scripts/rvm" is definitely incorrect as it is the repo version and not guaranteed to be there.

If "$HOME/.rvm/scripts/rvm" does not exist, did you install using sudo whereby it would install to /usr/local/rvm/ ?

Also, if you have questions / issues come talk to me in #rvm on irc.freenode.net as I am happy to help. I am on an EDT schedule.

~Wayne
October 20, 2010 | Unregistered CommenterWayne E. Seguin
Hey Wayne, thanks for the note. I installed as root user in this case. The directory

$HOME/.rvm/scripts/rvm

was never created for some reason. I'll run through it again and see if I can figure out what went wrong.

Cheers,

Kent
October 20, 2010 | Registered CommenterKent Langley
If you install as root the RVM path is /usr/local/rvm instead of $HOME/.rvm :)
October 22, 2010 | Unregistered CommenterWayne E. Seguin
Updated and posted a follow up to the original post. Thanks again Wayne! Great work!
October 22, 2010 | Registered CommenterKent Langley
Comments for this entry have been disabled. Additional comments may not be added to this entry at this time.