From: Marshall Farrier Date: 2011-07-14T15:07:58+09:00 Subject: Re: ruby 1.9 mac install problems 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/.