New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Installing ImageMagick


Installing ImageMagick can be a problem sometimes. If installing from CPAN doesn't work, and you don't know what version to choose from what ftp server, your last resort is to install ImageMagick from source.


The instructions here assume you are using RedHat. Other platforms may be covered later.


Install libjpeg-devel (needed for ImageMagick):
$ yum install libjpeg-devel

Install libpng-devel (needed for ImageMagick):
$ yum install libpng-devel

Install ImageMagick from source:
$ wget
$ gunzip -c ImageMagick.tar.gz | tar xvf -
$ cd ImageMagick-6.?.?
$ ./configure -with-perl=/usr/bin/perl
$ make; make install

Ensure that the ImageMagick libraries will be picked up by the system.
Edit /etc/ and add the following line to the end of the file:

Then run the following command to update the library database:
$ /sbin/ldconfig

Test if ImageMagick is installed:
convert -version

Test if ImageMagick works:
convert -size 100x60 xc:skyblue -fill white -stroke black -draw "rectangle 20,10 80,50" test.gif
This should generate a GIF file.

Test if PerlMagick works:
$ perl -MImage::Magick -e 1
If the output from this command is blank then all is well.

-- ArthurClemens - 06 May 2012

BestPracticeTipsForm edit

Category Installation and Upgrading
Related Topics
Topic revision: r2 - 06 May 2012, ArthurClemens - This page was cached on 23 Mar 2018 - 03:27.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License