Installing ImageMagick
From Dev411: The Code Wiki
Here are the steps to install ImageMagick on a Linux system with Perl
[edit]
Download the sources
You'll need the source for ImageMagick and any additional delegate libraries for features you'll want to use. The URL's for all the ImageMagick delegates is included in the README.txt file, however, for convenience the links for JPEG and PNG are below.
- ImageMagick (http://sourceforge.net/projects/imagemagick)
- JPEG library (ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz)
- libpng and zlib libraries (http://www.libpng.org/pub/png/pngcode.html)
[edit]
Installation
You'll want to install the delegate libraries first. The following commands should be run from the directory the source tarball extraction created. It doesn't matter what directory you install the Image::Magick Perl module from.
JPEG library
./configure --enable-shared make make test make install make clean
zlib library
./configure -s make make test make install make clean
PNG library
cp /scripts/makefile.linux ./makefile make make test make install make clean
ImageMagick
./configure --enable-shared=yes --with-perl=/usr/local/bin/perl --with-jpeg=yes --with-zlib=yes --with-png=yes make make install
Image::Magick
perl -MCPAN -e 'install Image::Magick'
