Cannot locate header file MagickWand.h

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
happysmile

Cannot locate header file MagickWand.h

Post by happysmile »

Hi all,
I am an absolute newbie to mac and command line and I apologize in advance if my question is too stupid :p I hope it's not. :) :) :)

I installed ImageMagick.

identify -version
Version: ImageMagick 6.5.5-10 2009-09-12 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Now I am trying to install imagick

sudo pecl install imagick

This is what I get

Code: Select all

downloading imagick-2.3.0.tgz ...
Starting to download imagick-2.3.0.tgz (86,976 bytes)
.....................done: 86,976 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the prefix of Imagemagick installation [autodetect] : 
building in /var/tmp/pear-build-root/imagick-2.3.0
running: /usr/local/temp/imagick/configure --with-imagick
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... i686-apple-darwin10.0.0
checking host system type... i686-apple-darwin10.0.0
checking target system type... i686-apple-darwin10.0.0
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/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... no
checking for awk... awk
checking if awk 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... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.5.5 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
ERROR: `/usr/local/temp/imagick/configure --with-imagick' failed
I saw a similar topic in this forum but it didn't have a solution.
Any idea?

Thank you!!!
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Cannot locate header file MagickWand.h

Post by mkoppanen »

You need to give location to ImageMagick during installation
Mikko Koppanen
My blog: http://valokuva.org
happysmile

Re: Cannot locate header file MagickWand.h

Post by happysmile »

Thank you.
I thought I could just leave the default one, but it didn't work.
I have just installed it.
Interesting link:
http://xentek.net/articles/442/installi ... -macports/
:)
Happy me now.

Cheers!!!!
Post Reply