首页 > 代码库 > 安装imagemagick

安装imagemagick

需要先安装libpng,libjpeg yum install libpng

yum install libjpeg

wget http://www.imagemagick.org/download/legacy/ImageMagick-6.6.8-10.tar.gz
tar -xzvf ImageMagick-6.6.8-10.tar.gz
./configure –prefix=/usr/local/imagemagick
make
make install

wget http://pecl.php.net/get/imagick-3.1.0RC1.tgz
tar -xzvf imagick-3.1.0RC1
phpize
./configure –with-php-config=/usr/local/php/bin/php-config –with-imagick=/usr/local/imagemagick
make
make install

如果发现库没找到

ranlib /usr/local/lib/libjpeg.so.9
ldconfig /usr/local/lib

参考:http://www.tecmint.com/install-imagemagick-in-linux/

安装imagemagick