1、安装:ImageMagick:
下载:sudo curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
可以在网站上自己下载:http://175.6.32.4:88/soft/web/imagemagick/下载自己想要的版本
解压:sudo tar -zxvf ImageMagick.tar.gz
cd ImageMagick-7.0.7-21/
sudo ./configure --prefix=/usr/local/ImageMagick
sudo make
sudo make install
2. 安装php扩展imagick
下载:wget https://pecl.php.net/get/imagick-3.4.3.tgz
解压:sudo tar -zxvf imagick-3.4.3
安装:
cd imagick-3.4.3
sudo /usr/bin/phpize
sudo ./configure --with-php-config=/usr/bin/php-config --with-imagick=/usr/local/ImageMagick
sudo make
sudo make install
完成后:
踩坑1:
安装