Instructions related to the installation and configuration of the ImageMagick product on a Mac OSX operating system. The installation instructions and documentation stem from an initial problem I had related to attemping to install the software using the Ruby Gem.

Problem - First Attempt

The first attempt at installing the gem resulted in the following output:

$ gem install rmagick

No package 'MagickCore' found
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***

Solution

To solve for the above, the following commands were run.

Install software via HomeBrew:

$ brew install ImageMagick

Add the package configuration path to the env vars in the .bash_profile file:

$ vim ~/.bash_profile
# add the following
#   export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"

Source the newly-updated .bash_profile file:

$ source ~/.bash_profile

Symlink the required libraries and directories:

$ ln -s /usr/local/include/ImageMagick/wand /usr/local/include/wand
$ ln -s /usr/local/include/ImageMagick/magick /usr/local/include/magick

At this point, you should have a fully-functioning ImageMagick installation on OSX.