Error at install IMagick for PHP

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
Peter_VD
Posts: 5
Joined: 2012-04-13T07:32:33-07:00
Authentication code: 8675308

Error at install IMagick for PHP

Post by Peter_VD »

Hello,
I was searching the internet and also the forum, but I cannot find a solution.
I am unable to install IMagick for PHP
System: debian lenny, PHP 5.2.6.1,
I have installed Image Magick 6.7.6-5 with no problems, but when I try to
install Imagick 3.0.1 I get an error.
phpize
./configure
and than
make

I get this(only the last 10 rows):

/imagick-3.0.1/imagick_class.c:9669: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/imagick-3.0.1/imagick_class.c:9672: error: âMagickFalseâ undeclared (first use in this function)
/imagick-3.0.1/imagick_class.c:9673: error: âExceptionTypeâ undeclared (first use in this function)
/imagick-3.0.1/imagick_class.c:9673: error: expected â;â before âseverityâ
/imagick-3.0.1/imagick_class.c:9673: error: âphp_imagick_objectâ has no member named âmagick_wandâ
/imagick-3.0.1/imagick_class.c:9673: error: âseverityâ undeclared (first use in this function)
/imagick-3.0.1/imagick_class.c:9673: warning: assignment makes pointer from integer without a cast
/imagick-3.0.1/imagick_class.c:9673: warning: cast to pointer from integer of different size
/imagick-3.0.1/imagick_class.c:9673: warning: cast to pointer from integer of different size
/imagick-3.0.1/imagick_class.c:9673: error: âphp_imagick_objectâ has no member named âmagick_wandâ
make: *** [imagick_class.lo] Error 1

All the rows above these 10 are also error.(there are also those comic signs (â â;â)
I tried an other version but gave the same result.
What am I doing wrong, could someone please advise me how to install IMagick?

Thanks Peter
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error at install IMagick for PHP

Post by fmw42 »

I have installed Image Magick 6.7.6-5 with no problems, but when I try to
install Imagick 3.0.1 I get an error.
I believe that there is a more current version of Imagick at v3.1x
Peter_VD
Posts: 5
Joined: 2012-04-13T07:32:33-07:00
Authentication code: 8675308

Re: Error at install IMagick for PHP

Post by Peter_VD »

Thank you fmw42, I also tried the latest version of Imagick (3.1.0RC1), but the result is the same.
fr0x
Posts: 2
Joined: 2012-05-08T15:47:51-07:00
Authentication code: 13

Re: Error at install IMagick for PHP

Post by fr0x »

I had the exact same issue and found the solution after a bit of hunting.....

yum install ImageMagick-devel

Once I had that (and its numerous dependencies installed) I redid the phpize,./configure, make, make install and it all ran without a hitch. I am also using the more recent IMagick (the most recent RC).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error at install IMagick for PHP

Post by fmw42 »

I am also using the more recent IMagick (the most recent RC).
What version is that, now.
fr0x
Posts: 2
Joined: 2012-05-08T15:47:51-07:00
Authentication code: 13

Re: Error at install IMagick for PHP

Post by fr0x »

I used imagick-3.1.0RC1.tgz
liran
Posts: 1
Joined: 2012-08-20T01:12:34-07:00
Authentication code: 67789

Re: Error at install IMagick for PHP

Post by liran »

hello,

i have the same problem on centos 5.7 32bit , do you have any solution?
jjbaranowski
Posts: 11
Joined: 2013-01-18T08:56:57-07:00
Authentication code: 6789

Re: Error at install IMagick for PHP

Post by jjbaranowski »

I believe that imagick requires that the imagemagick-devel version be installed before you install imagick. If you installed from source, Im not sure how you get the -devel version installed. I don't see the download for that. The only -devel version I found is the binary release and that would work for me either.

So my question is: if you install imagemagick from source, how do you install the -devel version from source as well? I need to do this prior to installing imagick. Any ideas would be greatly appreciated?
san
Posts: 1
Joined: 2013-03-25T05:40:49-07:00
Authentication code: 6789

Re: Error at install IMagick for PHP

Post by san »

I had installed ImageMagick on my local server and it worked perfectly fine. But when I moved to Webfaction, and tried installing it on the server I had issues. The ImageMagick is installed on the server but I am not able to install the php extension imagick. I followed the steps and downloaded the tar file from http://pecl.php.net/get/imagick-3.0.1.tgz. I then unzipped the file and its contents and configured it. I also did phpize. But when I did make I got the following errors:

[e@web308 imagick-3.0.1]$ make /bin/sh /home/e/temp/imagick-3.0.1/libtool --mode=compile cc -I. -I/home/e/temp/imagick-3.0.1 -DPHP_ATOM_INC -I/home/e/temp/imagick-3.0.1/include -I/home/e/temp/imagick-3.0.1/main -I/home/e/temp/imagick-3.0.1 -I/usr/local/include/php54 -I/usr/local/include/php54/main -I/usr/local/include/php54/TSRM -I/usr/local/include/php54/Zend -I/usr/local/include/php54/ext -I/usr/local/include/php54/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /home/e/temp/imagick-3.0.1/imagick_class.c -o imagick_class.lo mkdir .libs cc -I. -I/home/e/temp/imagick-3.0.1 -DPHP_ATOM_INC -I/home/e/temp/imagick-3.0.1/include -I/home/e/temp/imagick-3.0.1/main -I/home/e/temp/imagick-3.0.1 -I/usr/local/include/php54 -I/usr/local/include/php54/main -I/usr/local/include/php54/TSRM -I/usr/local/include/php54/Zend -I/usr/local/include/php54/ext -I/usr/local/include/php54/ext/date/lib -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /home/e/temp/imagick-3.0.1/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o /home/e/temp/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setfont’: /home/e/temp/imagick-3.0.1/imagick_class.c:1442: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’ /home/e/temp/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function) /home/e/temp/imagick-3.0.1/imagick_class.c:1442: error: (Each undeclared identifier is reported only once /home/e/temp/imagick-3.0.1/imagick_class.c:1442: error: for each function it appears in.) /home/e/temp/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function) /home/e/temp/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setimageprogressmonitor’: /home/e/temp/imagick-3.0.1/imagick_class.c:9534: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’ /home/e/temp/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function) /home/e/temp/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function) make: * [imagick_class.lo] Error 1

It says some of the variables are undeclared. I tried with other versions and get the same errors.

Any help on what I might be doing wrong here?

Thanks in advance.
Post Reply