ImageMagick - PECL issue - Cannot locate header file MagickWand.h

capte picture capte · Jul 24, 2013 · Viewed 26.1k times · Source

We are getting this error while installing ImageMagick PECL:

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.8.6 Q16 checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed extension imagick.so installed in /usr/local/lib/php.ini /usr/local/bin/php does not have a php.ini Tidying /usr/local/cpanel/3rdparty/php/53/etc/php.ini... No changes

Any idea how to fix this ?

Answer

e-Jim picture e-Jim · Feb 17, 2017

This thread is old, but I solved this issue today on a Centos 7 by installing ImageMagick-devel package:

yum install ImageMagick-devel

Hope this helps.