kangle php 7.2.20安装imagick扩展功能的方法(ImageMagick)
官方库:http://pecl.php.net/package/imagickyum -y install imagemagick-devel
wget -c http://pecl.php.net/get/imagick-3.4.4.tgz
tar zxvf imagick-3.4.4.tgz
cd imagick-3.4.4
/vhs/kangle/ext/tpl_php7220/bin/phpize
./configure --with-php-config=/vhs/kangle/ext/tpl_php7220/bin/php-config
make -j 4
make install
然后会返回,so文件就在里面了
Installing shared extensions: /vhs/kangle/ext/tpl_php7220/lib/php/extensions/no-debug-non-zts-20170718/
最后编辑/vhs/kangle/ext/tpl_php7220/php-templete.ini,在底部插入
extension = "/vhs/kangle/ext/tpl_php7220/lib/php/extensions/no-debug-non-zts-20170718/imagick.so"
然后重载kangle配置文件即可
/vhs/kangle/bin/kangle -r
此时ImageMagick已经可以正常工作啦
效果图
路过
页:
[1]