我很苦恼。PHP已经从源代码编译成功,一切都正常。现在需要安装Imagick但无法安装。
我正在运行Debian操作系统,内核版本为3.7.1,PHP版本为5.3.20(我的应用程序只支持此版本,不能升级到PHP 5.4)。
pecl install imagick
...
checking ImageMagick MagickWand API configuration program... found in /usr/bin/Wand-config
checking if ImageMagick version is at least 6.2.4... configure: error: no. You need at least Imagemagick version 6.2.4 to use Imagick.
ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed
然而,我已经安装了6.7.7版本:
# convert --version
Version: ImageMagick 6.7.7-10 2012-11-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
我尝试安装最新的beta版本(pecl install imagick-beta),结果相同。我还尝试了一个旧版本2.3.0,结果也相同。我还尝试下载源代码,使用phpize和configure命令,结果也相同。
有人能帮忙吗?