Howto Install ImageMagick

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

First, if you already tried to install ImageMagick unsuccessfully, you need to uninstall it for this to work properly. To uninstall ImageMagick, go to your ImageMagick source directory and type:

$ make uninstall

1. ImageMagick needs a few support libraries to install properly. You can check for the header files in /usr/include and /usr/local/include to see if each library is installed. If you don’t find one or all of them then they will need to be installed.

tiff.h
png.h
jpeglib.h


2. Download the following files and FTP them (via binary mode) to a directory on your server (ex. /home/yourusername/imagemagick - that’s a temporary directory for the source files):

ImageMagick-6.3.0-7.tar.gz
jpegsrc.v6b.tar.gz
libpng-1.2.14.tar.gz
libtiff-lzw-compression-kit-1.5.tar.gz
tiff-v3.8.2.tar.gz

If you want to download the files directly to your server instead of downloading and ftping, use these commands instead:

$ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.0-7.tar.gz
$ wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
$ wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.14.tar.gz
$ wget http://dl.maptools.org/dl/libtiff/old/libtiff-lzw-compression-kit-1.5.tar.gz
$ wget http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz

Once the files are in your temporary imagemagick directory, uncompress them:

$ tar -xzf ImageMagick-6.3.0-7.tar.gz
$ tar -xzf libpng-1.2.14.tar.gz
$ tar -xzf libtiff-lzw-compression-kit-1.5.tar.gz
$ tar -xzf jpegsrc.v6b.tar.gz
$ tar -xzf tiff-v3.8.2.tar.gz

then:

$ cd libpng-1.2.14
$ cd scripts

Now do an “ls” and look for the makefile that matches your operating system.
If you can’t find one for your OS, makefile.gcc should work.
Copy the makefile to the libpng-1.2.14 directory:

$ cp makefile.linux ../makefile

In the line above, We used makefile.linux, but you should use your appropriate makefile.
Continue:

$ cd ..
$ make
$ make install
$ cd ..

$ cd jpeg-6b
$ ./configure –enable-shared
$ make
$ make install
$ cd ..

(For this next part, if you don’t have “pico“, you can use “vi” instead)

$ cd libtiff-lzw-compression-kit
$ pico -w Makefile

change:
TIFF_SRC_DIR = /tmp/libtiff
to:
TIFF_SRC_DIR = ../tiff-v3.8.2

Then save and exit the Editor:

$ make install

$ cd ..
$ cd tiff-v3.8.2
$ ./configure

Answer yes to TIFF Configuration Parameters

$ make
$ make install
$ cd ..

$ cd ImageMagick-6.3.0
$ ./configure –enable-lzw=yes –enable-shared=yes –disable-static –without-perl
$ make
$ make install

Done :)

 |  Print This Post Print This Post

Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post
 |  TrackBack URI for this post



Related Post:


Leave a Reply