Imagemagick and PerlMagick on Cygwin

PerlMagick is another one I always struggle to install under cygwin. I have gotten it to work under cygwin 1.15.18-1. First, don’t use the ImageMagick package distributed with cygwin. Get version 5.5.7 binary, cygwin distribution originally from www.imagemagick.org but since they have moved to version 6.

Install ImageMagick into /usr/local with the following commands:

$ cd /tmp
$ tar -xvzf ImageMagick-i686-pc-cygwin.tar.gz
$ cd ImageMagick-5.5.7
$ tar -cvzf install.tgz *
$ cd /usr/local
$ tar -xvzf /tmp/ImageMagick-5.5.7/install.tgz
$ rm -rf /tmp/ImageMagick-5.5.7

Now tell ImageMagick where it lives /usr/local. Create a link to libMagic.dll.a–apparently PerlMagick can’t find the libarary. Then install the PerlMagick 5.56 from cpan. Newer versions won’t seem to work with this version of ImageMagick. make test reports errors, but the installation works for me.

$ export MAGICK_HOME=/usr/local
# Edit Makefile.PL to add LIBS => -L/usr/local/lib
$ ln -s /usr/local/lib/libMagick.dll.a /usr/local/lib/libMagic.a
$ tar -xvzf PerlMagick-5.56.tar.gz
$ cd PerlMagick-5.56.tar.gz
$ ./configure && make && make install

Published

June 28, 2007 6:26AM

License

The contents of this blog are licensed under the Creative Commons “Attribution-Noncommercial-Share Alike 3.0″ license.