
Originally Posted by
BianchiDude
What is the easiest way to install ImageMagick on CentOS?
The easiest way is using /scripts/installimagemagick or using an RPM as already stated, but if you require one of the most recent versions a source install is always an option. I had to do this on my personal cPanel/WHM CentOS 5.x server a few weeks ago.
Use at your own risk!
Code:
yum remove ImageMagick
yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
mkdir /root/imagemagick
cd /root/imagemagick
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xzvf ImageMagick.tar.gz
cd ImageMagick-*
./configure --prefix=/usr/ --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
make
make install
Test your install
Code:
[root@rebirth:~]$ whereis convert
convert: /usr/bin/convert /usr/man/man1/convert.1 /usr/share/man/man1/convert.1
[root@rebirth:~]$ convert --version
Version: ImageMagick 6.6.1-2 2010-04-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
You can add in your custom configure options as needed in the configure line above. If you want to "uninstall" your build, you can always run:
Code:
cd /root/imagemagick/ImageMagick-*
make uninstall
Following the same steps on a x86_64 CentOS 5 server, I ran into some lib issues and they were fixed with the below commands.
Code:
cd /usr/lib64
ln -s ../lib/libMagickCore.so.3 libMagickCore.so.3
ln -s ../lib/libMagickWand.so.3 libMagickWand.so.3
Your mileage may vary. I consider installing from source to be a last resort to get the versions you require when using CentOS/RHL.

Originally Posted by
DomineauX
I have suggested a CentOS RPM to ImageMagick.org and they have replied confirming that it would be useful and easy to provide (since they themselves already build one for their own CentOS servers) and that they will add it to their Binary packages in the next day or two.
It would be nice to see some official RPM builds of the most recent versions of IM from ImageMagick.org.