Jared McFarland

The musings of a 20-something engineer

Installing ImageMagick on SnowLeopard 10.6

Update: You can install it a lot easier by following these instructions.

When I installed Snow Leopard on my laptop I did a clean install, so my working environment on my laptop was totally wiped out. I had to reinstall ImageMagick the other day ( you can imagine my frustration when I was getting ImageMagick related errors thinking it was already installed properly). The installation was a bit tricky, so I figured I’d share it with ya’ll.

Here’s how I did it.

First, go to the MacPorts site and follow their download/install instructions for OS 10.5 Leopard. This install went smoothly for me.

Next, open up Terminal.app and run

1
sudo port install ImageMagick

This will take quite awhile, as MacPorts will download and install all of the ImageMagick dependencies. However, when I ran the install, it didn’t actually download and install ImageMagick.

To get ImageMagick installed and running, go to the ImageMagick download page and grab the Mac OS X Universal Binary. Unzip it and you’ll have a working copy of ImageMagick inside that folder (the folder will be called something like ImageMagick-6.5.3).

Now, go back to the Terminal, and move the ImageMagick folder to a permanent home (probably not good for it to sit in your Downloads folder or on your Desktop). I moved my copy to /usr/bin/ and renamed the folder from ImageMagick-6.5.3 to imagemagick so my full path is /usr/bin/imagemagick .

Lastly, still in Terminal open up your .bash_profile or .profile file (found in your home directory; mine is ~/.bash_profile ), and add the following lines to it:

1
2
3
export MAGICK_HOME="/usr/bin/imagemagick"
export PATH=$MAGICK_HOME/bin:$PATH
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"

Note: If you moved your ImageMagick directory to a different spot in step 4, then the variable MAGICK_HOME will need to be assigned the proper value.

Restart Terminal and you should be set to jet with ImageMagick in Snow Leopard [=

Comments