blueberryfields blueberryfields - 3 months ago 22x
Perl Question

How do I install Image::Magick on mac os x?

I've attempted installing with brew:

brew install imagemagick

The installation seems to have completed successfully. However, when attempting to:

use Image::Magick;

I get the following error message:

Can't locate Image/ in @INC

I don't know much about the perl system on a mac, or where brew might have installed Image::Magick (I'm told it should have installed the perl libraries as part of the imagemagick install).


AFAIK homebrew version of ImageMagick doesn't contain perl-magick. You should install it from the sources:

All the above is guessing - I'm using MacPorts. MacPorts has two ports: ImageMagick for the basic ImageMagick and p5-perlmagick for the perl bindings.