On Mac OS X running Lion 10.7.3 and having Xcode 4.3.2, I find that installing ruby 1.9.3 through rvm and setting default to use 1.9.3 still shows ruby -v to be 1.8.7 (irb RUBY_VERSION also shows 1.8.7).
$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
$ rvm install 1.9.3 --with-gcc=clang
<installs successfully>
$ rvm --default 1.9.3
$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
$ irb
>> RUBY_VERSION
=> "1.8.7"
How do I get ruby and irb to use ruby 1.9.3 on this configuration?
Update: Looks like I had an older version of rvm. I installed Jewelry Box (OS X rvm GUI tool), which reinstalled rvm, and then updated the ruby to use from within jewelry box. This did the trick. Thanks all for your help.
Thanks
echo $PATHoutput? - Michelle Tilleyrvm usecommand? It looks like the RVM directory is not on your path... - Michelle Tilleyrvm listsay? - Michiel de Mare