Page 1 of 1

On compiling, Imagick thinks Imagemagick version is older

Posted: 2009-08-19T08:23:34-07:00
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.

Re: On compiling, Imagick thinks Imagemagick version is older

Posted: 2009-08-19T23:09:38-07:00
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.