欢迎光临
我们一直在努力

directadmin安装ImageMagick

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
赞(0) 打赏
未经允许不得转载:优惠吧 » directadmin安装ImageMagick
分享到: 更多 (0)

评论 237

评论前必须登录!