From: "Thành X. Phạm" Date: 2011-07-14T15:30:20+09:00 Subject: Re: ruby 1.9 mac install problems On Thu, Jul 14, 2011 at 1:07 PM, Marshall Farrier wrote: > Ryan Davis wrote in post #1010623: >> On Jul 13, 2011, at 20:46 , Marshall Farrier wrote: >> >>> Following Dave Thomas' instructions in Programming Ruby 1.9, p. 7, I got >>> MacPorts for my MacBook Pro (Snow Leopard, version 10.6.8), then ran >>> sudo port install ruby19 from command line, which took a while and >>> looked like it succeeded. But after the install (and after rebooting), >>> I'm still showing Ruby 1.8.7 when I type $ ruby -v from command line. >>> >>> I'm kind of guessing that it might be a path issue, but how do I change >>> things around so that I can code in 1.9 (without messing anything up >>> that potentially relies on 1.8.7)? >> >> Set up your path so that /opt/local/bin (I'm assuming that for macports) >> is in the front. >> >> eg: PATH=/opt/local/bin:$PATH > > path is set correctly. I checked ~/.profile, and the macports setup put > in that path, which also shows up right at the beginning when i type $ > echo $PATH. but i still get ruby 1.8.7 as version :( > > -- > Posted via http://www.ruby-forum.com/. > > If you install ruby 1.9 via Macports using the command "port install ruby19", the ruby's binaries will have the 1.9 suffix e.g. ruby1.9, irb1.9, etc. You have to use the nosuffix variants if you don't want the 1.9 suffix i.e "port install ruby19 +nosuffix" -- Thanh