You are not logged in.
Hi, I recently upgraded to the new php, php-fpm and imagemagick in the Arch Linux repositories simply using pacman -Syu.
Looks like the version of imagemagick is incompatible with php, I get this error message after starting my php-fpm service with the extension=imagick.so...
NOTICE: PHP message: PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
How can I get imagemagick working again?
Last edited by dwieeb (2012-07-20 17:21:13)
Offline
We don't provide such a PHP extension. So I guess you have compiled it yourself for PHP 5.3. You will need to recompile it for 5.4.
Offline
I believe I'm using the package in the Extra repository (http://www.archlinux.org/packages/extra … agemagick/). I guess I'm in the wrong place.
Offline
imagemagick does not provide the PHP imagick extension. If you need it, try to build it via PECL: http://www.php.net/manual/en/install.pecl.php
Edit: or use the aur package php-imagick
Last edited by progandy (2012-07-21 18:27:31)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I had the latest version of the pecl package imagick (3.0.1). I figured I needed to remake it for php 5.4.5, so I uninstalled/reinstalled and got these make errors (at the end of a list of warnings):
/tmp/pear/temp/imagick/imagick_class.c: In function 'zim_imagick_setimageprogressmonitor':
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'struct _php_core_globals' has no member named 'safe_mode'
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1
ERROR: `make' failed
I tried using a release candidate of the next version of this package (http://pecl.php.net/package/imagick/3.1.0RC1) and that works.
Offline
I had the same problem. Version 3.1.0 works, but is a 'beta' release. Install it with
pecl install imagick-3.1.0
Last edited by lonaowna (2013-09-09 08:25:22)
Offline
Or you can try php-imagick, it's in the AUR.
Offline