The previous method of building RMagick did not work unless you had the necessary graphics libs already installed. The below method worked on a clean install of Tiger.
Download and install the Graphics Libs package at http://www.kyngchaos.com/macosx/downloads.php
Updated Link (26/7/06)
http://www.kyngchaos.com/software/unixport/graphicslibs
This will install Image Magick and graphics libs in /usr/local/graphicslibs.
The install may install more items than you want, but it is easier than installing from source.
Download the latest copy of RMagick (don’t use the gem):
http://rubyforge.org/projects/rmagick/
Temporarily set your path to point the graphicslib:
export PATH=/usr/local/graphicslibs/lib/:/usr/local/graphicslibs/bin:$PATH
Untar and build as normal:
tar xfz RMagick-1.9.0.tar.gz cd RMagick-1.9.0 ./configure make sudo make install
It will give many errors, but these relate to the documentation, not the actual libraries.
If you continue to have problems, reading through RMagick’s config.log may give you hints as to what’s going wrong.
To test, run a sample RMagick script, such as this one
comment: sorry, not working for me. getting configure: error: Can’t install RMagick. Can’t find libMagick or one of the dependent libraries. when trying to run ./configure on RMagick.