From: Ryan Davis Date: 2011-07-14T13:53:20+09:00 Subject: Re: ruby 1.9 mac install problems 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