From: Mario Camou Date: 2009-08-30T00:28:28+09:00 Subject: Re: Update latest Ruby Version 1.9 on Mac OSX --001636ed6b81c1fd1b04724973e1 Content-Type: text/plain; charset=ISO-8859-1 Note that for MacPorts it's /opt/local/bin, not /usr/local/bin. Also, in OS X the preferred way of setting environment variables is via .MacOS/environment.plist: http://developer.apple.com/mac/library/qa/qa2001/qa1067.html Hope this helps, -Mario. -- I want to change the world but they won't give me the source code. On Sat, Aug 29, 2009 at 16:16, Xavier Noria wrote: > On Sat, Aug 29, 2009 at 3:41 PM, Luca Reghellin > wrote: > > > Christian wrote: > >> Just install MacPorts and then install 1.9 > > > > Hi! I installed ruby19 with macports (1.8.0) on Leopard, but still can't > > use ruby 1.9. > > > > ruby -v: 1.8.6 > > > > which ruby: /usr/bin/ruby > > I had /usr/local/bin in /etc/profile and it was being ignored after > upgrade to SL. > > I've not investigated why, but by trial and error I discovered that > /etc/paths no honors order (if I am not mistaked it didn't, or the > system ignored extra entries... don't remember the exact gotcha but > there was one). > > So my /etc/profile, /etc/bashrc and /etc/paths.d are system defaults > now, and just edited /etc/paths to put /usr/local/bin at the top. > > --001636ed6b81c1fd1b04724973e1--