You are not logged in.

#1 2012-07-20 17:21:03

dwieeb
Member
Registered: 2012-07-20
Posts: 7

PHP 5.4.5 and Imagemagick

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

#2 2012-07-20 19:24:08

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: PHP 5.4.5 and Imagemagick

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

#3 2012-07-21 18:21:26

dwieeb
Member
Registered: 2012-07-20
Posts: 7

Re: PHP 5.4.5 and Imagemagick

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

#4 2012-07-21 18:26:30

progandy
Member
Registered: 2012-05-17
Posts: 5,220

Re: PHP 5.4.5 and Imagemagick

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

#5 2012-07-21 18:47:27

dwieeb
Member
Registered: 2012-07-20
Posts: 7

Re: PHP 5.4.5 and Imagemagick

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

#6 2013-09-09 08:24:55

lonaowna
Member
Registered: 2013-03-25
Posts: 28

Re: PHP 5.4.5 and Imagemagick

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

#7 2013-09-09 18:53:01

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: PHP 5.4.5 and Imagemagick

Or you can try php-imagick, it's in the AUR.

Offline

Board footer

Powered by FluxBB