Goal : Install ImageMagick with multi-page TIFF and JPEG support.
Target System : RedHat 8 and above
1. Create a archive directory.
> mkdir /root/archive
2. Install JPEG library from ftp://ftp.uu.net/graphics/jpeg/
> cd /root/archive
> wget --passive-ftp ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
> tar -xvzf jpegsrc.v6b.tar.gz
> cd jpeg-6b
> ./configure
> make
> make install
3. Install TIFF library from ftp://ftp.remotesensing.org/pub/libtiff/
> cd /root/archive
> wget --passive-ftp ftp://ftp.remotesensing.org/pub/libtiff/tiff-v3.6.1.tar.gz
> tar -xvzf tiff-v3.6.1.tar.gz
> wget --passive-ftp ftp://ftp.remotesensing.org/pub/libtiff/libtiff-lzw-compression-kit-1.5.tar.gz
> tar -xvzf libtiff-lzw-compression-kit-1.5.tar.gz
> cd libtiff-lzw-compression-kit-1.5
> cp tif_lzw.c ../tiff-v3.6.1/
> cd ../tiff-v3.6.1
> ./configure --noninteractive
> make
> make install
4. Install ImageMagick software from http://www.imagemagick.org
> cd /root/archive
> wget --passive-ftp ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-5.5.7-16.tar.gz
> tar -xvzf ImageMagick-5.5.7-16.tar.gz
> cd ImageMagick-5.5.7
> ./configure --enable-lzw --disable-installed --without-perl
> make
> make install
And that's it!