Reputation: 103
I've just started learning RoR and I've come across a problem.
ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
But when I try to install version 1.9.3 this is what happens:
rvm install 1.9.3
Already installed ruby-1.9.3-p484.
To reinstall use:
rvm reinstall ruby-1.9.3-p484
Sorry if it's a noob question, I've just started learning. I'm running Elementary OS (Ubuntu based distro)
Upvotes: 0
Views: 465
Reputation: 2964
Ruby 1.9.3 is already installed. To use it, write
rvm use 1.9.3
To make it the default version, use
rvm --default use 1.9.3
And to get all your ruby versions installed, use
rvm list
Upvotes: 1
Reputation: 890
Make ruby 1.9.3 default, or even better use ruby 2.1 if you are just starting with Rails 4.2
rvm --default use 1.9.3
or better
rvm install 2.1
rvm --default use 2.1
Upvotes: 3
Reputation: 12913
Since RVM performs non-standard installs, the new version won't be automatically chosen.
You have to explicitely "enter" the new Ruby environment with
rvm use 1.9.3
Upvotes: 1