centos如何安装ImageMagick

工作需要,特地记录一下

1
2
3
4
5
6
7
8
9
10
# yum install libjpeg
# yum install libjpeg-devel
# yum install libpng
# yum install libpng-devel
# yum install libtiff
# yum install libtiff-devel
# yum install libungif
# yum install libungif-devel
# yum install freetype
# yum install zlib

# 如果以前安装过,卸载掉ImageMagick:

1
2
3
#yum remove ImageMagick
#yum install ImageMagick
#yum install ImageMagick-devel

#查看安装结果

1
convert --version

============================安装扩展============================================

1
2
3
4
5
6
7
8
wget http://www.magickwand.org/download/php/MagickWandForPHP-1.0.9-2.zip
unzip MagickWandForPHP-1.0.9-2.zip 
cd MagickWandForPHP-1.0.9
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
 
 
pecl install imagick