Last Updated: February 25, 2016
·
888
· valchonedelchev

Install Image::Magick perl module on OSX

Because Image::Magick needs some C header files to be available on your system, installation using cpanm fail at first.

Before using cpanm to you need to install imagemagick libraries first:

brew install --fresh imagemagick --with-perl

Now you can try to install perl module:

sudo cpanm Image::Magick

If you still get the errors, check if the error is in the test suite and try to add --force option at the end of the command above.

brew install --fresh imagemagick --with-perl --force

Cheers!