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
- Download and unpack masterkain’s install script from github: http://github.com/masterkain/ImageMagick-sl.
- open up a terminal,
cd
into the install script’s directory. - run
./install_im.sh
. - Let it run. Note – you will need to provide your admin password a couple times.
- Give the kids a bath.
- Download and unpack RMagick (I couldn’t get the gem to work)
cd
into the resulting RMagick directory and runruby setup.rb config --disable-htmldoc
- 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).