Using RVM on Ubuntu 10.10
Tuesday, October 19, 2010 at 09:52AM 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.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:~#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:~#
Kent Langley
Thank Wayne for catching my error and posting the info here in the comments. The reason I was having issues w/ my RVM installation on Ubuntu 10.10 is that when you install AS ROOT the path for the .bashrc is going to look like this:
[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm"
I posted the entire .bashrc contents to a github gist file if you'd like to see the whole thing. The only modifications are to fix it up for RVM.
Kent Langley | Comments Off |
ruby in
Interesting Things,
ruby
Reader Comments (4)
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
$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