i am new to linux. i have kubuntu 11.10 , i have installed ruby 1.9.2 and only after this i have installed rvm. after this i made
rvm install 1.9.2
and
rvm install 1.8.7
and when i use
rvm use 1.8.7
ruby -v
it writes
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
i tryed to use another versions but it writes same anyway, so i think that rvm dont have priority to choose ruby version. how to solve this problem? It’s cause i have installed ruby and only after this i have installed rvm?
looking at the output of your
rvm list, you have two rubies installed, none of them default.Looks like you just missed the step to make 1.9.2 the default.
And it seems you didn’t modify your
.bash_profilefileSee Step 3 on this page:
http://beginrescueend.com/rvm/install/
Your file
~/.bash_profileshould contain this line:(make sure to start a new shell, after modifying .bash_profile)
Then run this: (to set the default Ruby version)
See also:
http://beginrescueend.com/rubies/default/