On compiling, Imagick thinks Imagemagick version is older

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Chris Riesen

On compiling, Imagick thinks Imagemagick version is older

Post by Chris Riesen »

I'm trying to compile Imagick directly into PHP statically. Now everything works fine except it thinks I have an older version than I actually do:
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.

PHP I'm using is 5.3.0 and here are some outputs that might be helpful:

# convert -v
Version: ImageMagick 6.3.7 08/07/09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

# /usr/bin/Magick-config --version
1.1.11

# /usr/bin/Wand-config --version
1.1.11


Here the configure for PHP I use:

./configure \
--enable-fastcgi \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-mysql=/usr \
--with-zlib \
--enable-mbstring \
--with-curl \
--with-zlib-dir=/usr/include/ \
--enable-zip \
--with-bz2 \
--with-pdo-mysql=/usr \
--with-magickwand=/usr \
--with-imagick=/usr \
--enable-ftp

Any help at all would be highly appreciated.
Chris Riesen

Re: On compiling, Imagick thinks Imagemagick version is older

Post by Chris Riesen »

I found out now that it didn't work because Wand-config returned that 1.1.11 number, which is what the configure script listens for. So instead of relying on packages I recompiled imagemagick from scratch by hand and now it runs through perfectly.
Post Reply