# yum -y install libpng* libjpeg* libtiff* giflib* freetype freetype-devel ghostscript* # wget ImageMagick-6.6.6-4.tar.gz # tar -zxvf ImageMagick-6.6.6-4.tar.gz # cd ImageMagick-6.6.6-4 # ./configure --enable-shared --without-x --with-gnu-ld --with-jpeg=yes --with-jp2=yes CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' CFLAGS='-g -ggdb -O0' CC=gcc # make # make install