Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

i installed ruby 1.9.2 with RVM, but when i type "ruby -v" is telling me the ruby v i have is 1.8.7 (mac)

Tags:

macos

ruby

rvm

when i write in the treminal "rvm list" i get this:

rvm rubies

   ruby-1.9.1-p378 [ x86_64 ]
   ruby-1.9.2-p136 [ x86_64 ]

but when i type "ruby -v" i get this:

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

what shoud i do?

like image 456
gal Avatar asked Feb 08 '11 20:02

gal


1 Answers

Have you tried rvm use 1.9.2? Installing rubies does not make them the executable version of ruby. RVM will only make ruby the 1.9.2 version if you tell it to, with rvm use 1.9.2 or rvm use 1.9.1

If you want rvm to use 1.9.2 by default, use rvm --default use 1.9.2

like image 156
Brett Bender Avatar answered Sep 30 '22 04:09

Brett Bender