Install terlebih dahulu paket-paket yang di perlukan oleh imagemagic

yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel

compile imagemagic dengan opsi berikut

./configure --prefix=/usr/local/ --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