centos7

centos7下安装php的Imagick扩展

yum install php-pear php-devel
yum install ImageMagick ImageMagick-devel
yum install pcre-devel
wget http://pecl.php.net/get/imagick-3.2.0RC1.tgz
tar -xvf imagick-3.2.0RC1.tgz
cd imagick-3.2.0RC1/
phpize
./configure
make
make test
make install
Remember to turn on the extension in the php configuration file.

vim /etc/php.ini

extension = imagick.so

centos7下安装php的Imagick扩展