From: Elliot Temple Date: 2006-07-15T08:51:20+09:00 Subject: Re: Mac OSX Ruby Configuration Question On Jul 14, 2006, at 4:40 PM, Steven R. wrote: > Elliot Temple wrote: >> On Jul 14, 2006, at 4:15 PM, Eric Hodel wrote: >>> On Jul 14, 2006, at 4:10 PM, Steven R. wrote: >>> >>>> I recently installed Ruby 1.8.4 on my iMac, running OSX 10.4. >>>> Ruby, Rails, etc. run great and I am working through Ruby for >>>> Rails (great book, BTW). >>>> >>>> I installed ruby in /usr/local so as not to conflict with the >>>> version (1.8.2) used by OSX. >>>> >>>> Now, I have to type "/usr/local/bin" before all Ruby commands, >>>> and similar to use rails, rubygems, etc. >>> >>> mv /usr/bin/ruby /usr/bin/ruby182-orig >>> >>> You may need to do the same with irb, ri, rdoc and testrb. >>> >>> Beware, updates from 10.x.y to 10.x.z may restore /usr/bin/ruby. >> won't that mess up anything that tries to use the system version? >> i think the solution is to add to your path in your .profile >> -- Elliot Temple >> http://www.curi.us/blog/ > > Thank you for the help - > > Per my original post, my path already includes the path: > > Alpha:~ srummel$ echo $PATH > /usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin > Alpha:~ srummel$ ruby -v > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] > Alpha:~ srummel$ /usr/local/bin/ruby -v > ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0] > Alpha:~ srummel$ > > Is there some other issue involved? oh oops. well the places in the path are tried in order. so just put the /usr/ local/bin before /usr/bin -- Elliot Temple http://www.curi.us/blog/