From: John Browning Date: 2007-06-26T03:11:58+09:00 Subject: Re: OS X reads builtin version of ruby On 25 Jun 2007, at 16:14, Herb Fitz wrote: > Ok, so i've tried to install 1.8.6 in a few ways, the first was > building > it from source and most recently using macports. I've added the > correct > lines to both my /etc/profile and ~/.bash_login. Whenever I reload > these > files manually I get the correct version of ruby by issuing the > version > command. Can anyone help? I searched the forum for my question but had > difficulty finding an answer. Sorry if this has been asked a million > times. > > -- > Posted via http://www.ruby-forum.com/. > > The overkill way would be something like sudo mv /usr/bin/ruby /usr/bin/ruby-old-1.8.2 sudo ln -s /usr/local/bin/ruby /usr/bin/ruby # or ln -s /opt/ local/bin/ruby ... if you want to use the one macports installed BUT you will have to remember to update the link if you want to update ruby -- and this is a less good solution than getting the path right in the first place because you have two things to update instead of just one. Getting the path right would involve something like export PATH=/usr/local/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/ local/sbin:$PATH in your .profile Then again, expediency is the mother of invention.