首页 > 代码库 > 安装 imagick

安装 imagick

一、安装 imagick

wget http://pecl.php.net/get/imagick-2.3.0.tgz
tar zxf imagick-2.3.0.tgz
cd imagick-2.3.0
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
cd ..
rm -rf imagick-2.3.0*
ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/

二、配置 imagick

sed -i ‘s#; extension_dir = "./"#extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/"#g‘ /etc/php.ini
echo "extension = imagick.so" >> /etc/php.ini
/usr/local/php/bin/php -m | grep imagick

 

 

 

 

    

安装 imagick