CommonThread

Upgrade ruby 1.8.4 to 1.8.5 on MacOS 10.5 (Tiger)

Posted by ben, Thu Mar 08 10:12:00 UTC 2007

I set out to upgrade my ruby 1.8.4 to 1.8.5 but I was nervous because I was doing this right after my friend experienced a lot of trouble with gems not being loaded properly and I had read an article of other peoples pain online.

Luckily, I managed to get out pain free. I installed 1.8.4 from source to /usr/local so I just did that again for 1.8.5

curl -o ruby-1.8.5.tar.gz ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5-p12.tar.gz
tar -zxvf ruby-1.8.5.tar.gz
cd ruby-1.8.5-p12
./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local
make
sudo make install

you can make sure it’s pulling from /usr/local/bin/ruby by typing which ruby from the command line.

if so then you should see 1.8.5 plus some build info when you type ruby -v from the command line.

If you are as lucky as me then you didn’t have to redo any gems or anything else and everything should be working just fine with ruby 1.8.5

Filed Under: | Tags:

Comments

  1. Ben 04.01.07 / 22PM
    OK ... so I got my version wrong. 10.4 is Tiger not 10.5 ... oops

Have your say

A name is required. You may use HTML in your comments.




Categories