Page 1 of 1
Error at install IMagick for PHP
Posted: 2012-04-13T07:40:36-07:00
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
Re: Error at install IMagick for PHP
Posted: 2012-04-13T10:22:09-07:00
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
Re: Error at install IMagick for PHP
Posted: 2012-04-16T02:01:28-07:00
by Peter_VD
Thank you fmw42, I also tried the latest version of Imagick (3.1.0RC1), but the result is the same.
Re: Error at install IMagick for PHP
Posted: 2012-05-08T15:50:48-07:00
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).
Re: Error at install IMagick for PHP
Posted: 2012-05-08T16:10:37-07:00
by fmw42
I am also using the more recent IMagick (the most recent RC).
What version is that, now.
Re: Error at install IMagick for PHP
Posted: 2012-05-09T08:34:09-07:00
by fr0x
I used imagick-3.1.0RC1.tgz
Re: Error at install IMagick for PHP
Posted: 2012-08-20T02:21:08-07:00
by liran
hello,
i have the same problem on centos 5.7 32bit , do you have any solution?
Re: Error at install IMagick for PHP
Posted: 2013-01-18T09:08:14-07:00
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?
Re: Error at install IMagick for PHP
Posted: 2013-03-25T05:44:24-07:00
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.