magickwand php7,centos系统上为php安装imagick扩展以及magickwand扩展的方法

2. 安装程序

1) 安装 ImageMagick 【如果已经安装请跳过】,此处以当前的最新版本 ImageMagick-6.7.5-5.tar.gz 为例

复制代码代码如下:

tar zxvf ImageMagick-6.7.5-5.tar.gz

cd ImageMagick-6.7.5-5

./configure

make

make install

ldconfig /usr/local/lib

至此安装结束,安装路径默认为 /usr/local下面

2)配置pkgconfig相关参数【如果处理则跳过】

复制代码代码如下:

ln -s /usr/local/lib/pkgconfig/MagickWand.pc /usr/lib/pkgconfig/MagickWand.pc

ln -s /usr/local/lib/pkgconfig/ImageMagick.pc /usr/lib/pkgconfig/ImageMagick.pc

3)安装 imagick 【此处以最新版本3.1.0 RC1为例】

复制代码代码如下:

tarzxvfimagick-3.1.0RC1.tgz

cdimagick-3.1.0RC1

/usr/local/webserver/php/bin/phpize

./configure--enable-shared--enable-static--with-php-config=/usr/local/webserver/php/bin/php-config--with-imagick=/usr/local/

make

makeinstall

4)安装MagickWandForPHP【此处以最新版本1.0.9为例】

复制代码代码如下:

tarzxvfMagickWandForPHP-1.0.9.tar.gz

cdMagickWandForPHP-1.0.9

/usr/local/webserver/php/bin/phpize

./configure--enable-shared--enable-static--with-php-config=/usr/local/webserver/php/bin/php-config--with-magickwand=/usr/local/

make

makeinstall

3.编译完成后,将生成的文件添加到php.ini即可!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值