Problem with imagick installation

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
248
I have the following problem with installation:
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

What should i do to fix this issue?

Debian 6.0

Regards
 
I'm sorry, I did not write that I am trying to install imagick source.

PHP:
root@selserv:/usr/src/imagick-3.0.1# phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
root@selserv:/usr/src/imagick-3.0.1# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/m                                                                                        ain -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/inc                                                                                        lude/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-n                                                                                        on-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate                                                                                         PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

The results of a google search shows that the problem is common.

Unfortunately I have not found a solution.

Regards
 
I wrote:

You should either install ImageMagick (!not imagick) from sources then, or use magickwand

it means you should delete installed ImageMagick with apt-get/aptitude and install it from a source file, and only then you should try to install imagick
 
You are absolutely right.
My big mistake.

Unfortunately, I have a new problem.

PHP:
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

I found some solutions in google, but none helped.
I'm giving up:(

Regards
 
What commands do you type (starting from changing a directory, till you get the error)? A screenshot would be great.
 
Sorry.
I am sleepy and do stupid things.

I installed ImageMagick:
PHP:
./configure
make
make install

make check is ok

I installed MagickWand:
PHP:
phpize
./configure
make
make install

In /usr/local/lib/php/extensions/no-debug-non-zts-20060613 appear magickwand.so
I added extension=magickwand.so to my php.ini. After httpd restart extension is not visible in phpinfo().
 
Maybe try to add this to php.ini (and then restart httpd):

Code:
extension=imagick.so
 
It did not help.

Maybe I install it in a wrong way?

In /usr/local/lib/php/extensions/no-debug-non-zts-20060613 i have only apc.so and magickwand.so

Regards
 
I am now very stupid:]

I have 3 servers with different systems. I installed Imagick on a good machine, but I checked (phpinfo) on the wrong.

Sorry
Thank for your help
 
Back
Top