This article describes how to solve the CannotlocateheaderfileMagickWand. h error when installing imagick for PHP. For more information, see
This article describes how to solve the Cannot locate header file MagickWand. h error when installing imagick for PHP. For more information, see
Install php imagick on the new server today,
The environment is as follows:
Php 5.4.13
ImageMagick-6.8.3-10
Imagick-3.0.1
However, a problem occurs. It means MagickWand. h cannot be found:
Checking for MagickWand. h header file... configure: error: Cannot locate header file MagickWand. h
However, I have installed ImageMagick correctly. after GOOGLE for half a day, this problem cannot be solved. the original directory structure of ImageMagick 6.8 has changed. The header files of the old version are stored in the/usr/local/include/ImageMagick directory,
While ImageMagick 6.8 is placed in/usr/local/include/ImageMagick-6
Add soft connection
The command is as follows:
The Code is as follows:
Ln-s/usr/local/include/ImageMagick-6/usr/local/include/ImageMagick
Make & install
Compiled!
,