How to install ImageMagick

From Acenet Knowledgebase
Jump to: navigation, search

In this guide, we will install ImageMagick. First off, you need to determine whether or not you are installing ImageMagick on a 32bit operating system, or a 64 bit operating system. To do so is pretty easy.

[1] Login to your server's shell as root, and run this command:

uname -a

Your server will output something like this:

Linux hostname.myserver 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

or

Linux hostname2.myserver 2.6.18-128.1.10.el5PAE #1 SMP Thu May 7 11:14:31 EDT 2009 i686 i686 i386 GNU/Linux

These are two examples and the important part is the x86_64 or the i686. If you see x86_64, you have a 64 bit operating system. If you see i686 or i386, you have a 32 bit operating system.

[2] If you have a 64 bit operating system on your server, please run the following commands to install ImageMagick:

cd /usr/src
wget http://downloads.sourceforge.net/imagemagick/ImageMagick-6.4.7-10.tar.gz?use_mirror=superb-east
tar -xvzf ImageMagick-6.4.7-10.tar.gz
rm -rf ImageMagick-6.4.7-10.tar.gz
cd ImageMagick-*
./configure --prefix=/usr LDFLAGS="-L/usr/lib -Wl,-rpath,/usr/lib" 
make
make install
cd PerlMagick
perl Makefile.PL
make
make install
cd ../..
rm -rf ImageMagick-6.4.7-10

If you have a 32 bit operating system on your server, please run the following commands to install ImageMagick:

cd /usr/src
wget http://downloads.sourceforge.net/imagemagick/ImageMagick-6.4.7-10.tar.gz?use_mirror=superb-east
tar -xvzf ImageMagick-6.4.7-10.tar.gz
rm -rf ImageMagick-6.4.7-10.tar.gz
cd ImageMagick-*
./configure --prefix=/usr
make
make install
cd PerlMagick
perl Makefile.PL
make
make install
cd ../..
rm -rf ImageMagick-6.4.7-10

Once the script finishes installing, you are all done.