Ruby 1.8.4 on Mac OS X Panther
I use Fink to manage my Mac Mini, a Panther box which is patiently waiting for some Leopard love
In the meantime, if you need a fairly recent install of Ruby (1.8.4 at time of writing) on a Panther box (PPC or Intel), here’s a quick list fo things to do, the Fink way:
- Fink can take care of absolutely everything you need, but sometimes you need to use it’s unstable repositories. The latest ruby is in it’s unstable repositories.
From Fink’s FAQ:
- After editing the file be prepared to wait a long time, since the fink selfupdate, index and scanpackages commands will download and rebuild all sorts of stuff inside the fink install. Eventually all the compilation will stop, and then you can do the following incantations:
sudo fink install ruby
and after that:
sudo fink install rubygems-rb18
- that’s it, now you have a fully working ruby install inside /sw. It compiled ruby, abd so, it automagically added the readline library, giving you a proper irb and should you want to go the Rails way, a working console also.
Should you find a borken IRB: rename /usr/local/irb to /usr/local/irb-old
- ** NOTE ** the PATH is very important issue here. Please note I did not mention anything about removing the current OS X ruby install or anything of that sort. I found quite usefull to add the following line to the bottom of /etc/profile
source /sw/bin/init.sh
(which is a step that you should have done when installing fink, anyway)
Enjoy.