升级MagickWandForPHP1.0.8遇到问题的日志

vc5swpomp

普通会员
2011-05-26
1
0
0
MagickWandForPHP-1.0.8版本需要高版本的ImageMagick,我选择了目前最高版本ImageMagick-6.5.5-10

命令行查看ImageMagick版本
/usr/local/ImageMagick/bin/Magick-config --version

1、编译ImageMagick
./configure LDFLAGS="-L/usr/lib" CPPFLAGS="-I/usr/include" --prefix=/usr/local/ImageMagick --enable-shared --enable-lzw --without-perl --with-modules
make && make install

2、编译MagickWandForPHP生成.SO
/usr/local/bin/phpize
./configure -with-php-config=/usr/local/bin/php-config -enable-shared --with-magickwand=/usr/local/ImageMagick
make && make install
【特别注意】如果你的ImageMagick没有安装在默认路径,需要加上--with-magickwand=/usr/local/ImageMagick
否则会出现错误提示:
checking MagickWand-config in default path... configure: error: Cannot locate configuration program MagickWand-config

如果你需要编译好的.SO可以到 cnphp.com 的下载中心获取