Sounds strange but I cannot tell which ruby version is installed. If I do
rvm rubies
I get
ruby-1.9.2-p180 [ i686 ]
but with
ruby -v
I get
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
When trying to
rvm upgrade 1.8.7-p302 1.9.2-p180
I get an error
ERROR: Ruby 'ruby-1.8.7-p302' is not installed - please install it first.
ERROR: Error migrating gems.
So, which one is it? 1.8.7-p302 or 1.9.2-p180 ???
Please help me out here! Thanks
You get
1.8.7from the installed version of your system. Uservm use --default 1.9.2in order to set the Ruby installed viarvmas default.RVM basically changes your
$PATHvariable to point to a different Ruby version than the one installed on your system.Please also make sure that you have done steps 2 and 3 of the installation guide and confirmed that RVM is correctly set up.