All-in-one shell script to get RMagick gem installed on 10.5
This will most likely help you circumvent all the weird errors you may get about Magick-config on OS 10.5 when trying to install the RMagick gem.
Tweaked a script I found here. If you have wget, you can probably replace curl -O with wget and still be fine.