wget http://pecl.php.net/get/imagick-2.3.0.tgz tar -zxf imagick-2.3.0.tgz cd imagick-2.3.0
export PHP_PREFIX="/usr/local" $PHP_PREFIX/php5/bin/phpize
./configure —with-imagick=/usr/local --with-php-config=$PHP_PREFIX/php5/bin/php-config
make && make install
如果遇到Cannot locate header file MagickWand.h
就执行下ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
然后yum install ImageMagick-devel
vi /usr/local/DirectAdmin/custombuild/configure/ap2/configure.php5
加上--with-imagick=/usr/local
cd /usr/local/DirectAdmin/custombuild ./build php n
评论前必须登录!
注册