Installing ImageMagick & RMagick on OS X 10.6 Snow Leopard

This marks hour 4 of setting up ImageMagick & RMagick on my MacBook Pro – without MacPorts (MacPorts and I had a falling out years ago).

In an effort to save all of us that time, here’s how I got ImageMagick and RMagick working on my MacBook Pro running 10.6.2 Snow Leopard

  1. Download and unpack masterkain’s install script from github: http://github.com/masterkain/ImageMagick-sl.
  2. open up a terminal, cd into the install script’s directory.
  3. run ./install_im.sh .
  4. Let it run. Note – you will need to provide your admin password a couple times.
  5. Give the kids a bath.
  6. Download and unpack RMagick (I couldn’t get the gem to work)
  7. cd into the resulting RMagick directory and run ruby setup.rb config --disable-htmldoc
  8. then, provided no errors are thrown run sudo ruby setup.rb install

Update:
ImageMagick didn’t correctly guess the location of the Ghostscript fonts and threw the following error in my log when it ran

Magick::ImageMagickError (unable to read font `/usr/local/lib/ImageMagick-6.5.8/config//usr/local/share/ghostscript/n019003l.pfb' @ annotate.c/RenderFreetype/1043: `(null)'):

To fix this, navigate to ImageMagick’s config directory in the terminal, cd /usr/local/lib/ImageMagick-6.5.8/config then open up configure.xml in your favorite text editor. Then look for --with-gs-font-dir= and set it to the correct path (in my case I just appended /fonts to the path).

You should get my email