Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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/Magick.pm 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).

like image 678
blueberryfields Avatar asked Jun 04 '13 19:06

blueberryfields


People also ask

Where is ImageMagick installed on Mac?

If ImageMagick is installed via MacPorts, then the convert command lives in /opt/local/bin/. It is this directory that needs to get on the PATH environment variable.

Can I use ImageMagick on Mac OS X?

Congratulations, you have a working ImageMagick distribution under Mac OS X and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others. ~Claudio provides iOS builds of ImageMagick.

How do I know if ImageMagick is working properly?

Finally, to verify ImageMagick is working properly, type the following on the command line: Note, the display program requires the X11 server available on your Mac OS X installation DVD. Once that is installed, you will also need to set export DISPLAY=:0. The best way to deal with all the exports is to put them at the end of your .profile file

What are the system requirements to run ImageMagick?

A minimum of 512 MB of RAM is recommended, but the more RAM the better. Although ImageMagick runs well on a single core computer, it automagically runs in parallel on multi-core systems reducing run times considerably. The Windows version of ImageMagick is self-installing.

How do I install ImageMagick using BREW?

brew install imagemagick ImageMagick depends on Ghostscript fonts. To install them, type: brew install ghostscript The brew command downloads and installs ImageMagick with many of its delegate libraries (e.g. JPEG, PNG


1 Answers

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

  • go to http://www.imagemagick.org/download/perl/
  • download http://www.imagemagick.org/download/perl/PerlMagick-6.85.0.tar.gz
  • open Terminal.app
  • cd ~/Downloads
  • tar xvzf PerlMagick-6.85.0.tar.gz
  • cd PerlMagick-6.85
  • perl Makefile.PL
  • make
  • make test
  • make install (or sudo make install)

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.

like image 67
jm666 Avatar answered Oct 10 '22 00:10

jm666