Istalling Ruby 1.9.2

I just installed 1.9.2 on my 2nd machine, but after I installed I checked the version with ruby -v and it sent me 1.8.7

Here’s the terminal output…anyone know what’s wrong (I have RVM installed):

Francescas-MacBook-Air:~ fkrihely$ rvm install 1.9.2

Fetching yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/archives

Extracting yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/src

Configuring yaml in /Users/fkrihely/.rvm/src/yaml-0.1.4.

Compiling yaml in /Users/fkrihely/.rvm/src/yaml-0.1.4.

Installing yaml to /Users/fkrihely/.rvm/usr

Installing Ruby from source to: /Users/fkrihely/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)…

ruby-1.9.2-p290 - #fetching

ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while depending on your connection…

% Total % Received % Xferd Average Speed Time Time Time Current

                             Dload  Upload   Total   Spent    Left  Speed

100 8604k 100 8604k 0 0 394k 0 0:00:21 0:00:21 --:–:-- 157k

ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to /Users/fkrihely/.rvm/src/ruby-1.9.2-p290

ruby-1.9.2-p290 - #extracted to /Users/fkrihely/.rvm/src/ruby-1.9.2-p290

ruby-1.9.2-p290 - #configuring

ruby-1.9.2-p290 - #compiling

ruby-1.9.2-p290 - #installing

Removing old Rubygems files…

Installing rubygems-1.8.10 for ruby-1.9.2-p290 …

Installation of rubygems completed successfully.

ruby-1.9.2-p290 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).

ruby-1.9.2-p290 - #importing default gemsets (/Users/fkrihely/.rvm/gemsets/)

Install of ruby-1.9.2-p290 - #complete

Francescas-MacBook-Air:~ fkrihely$ ruby -v

ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

Francescas-MacBook-Air:~ fkrihely$

doh! For anyone who is silly like me,

After install put

rvm use 1.9.2

in the command line

and voilla

ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]

Sometimes its helpful to close the terminal and open a new one :slight_smile:

Javier

I generally like to use rvm use 1.9.2 --default to make sure that I always use my preferred installation version.