Resolution of Cannot locate header file MagickWand. h Error Installing imagick for PHP
- 2021-07-24 10:24:36
- OfStack
Install php imagick on new clothes today.
The environment is as follows:
php 5.4.13
ImageMagick-6.8.3-10
imagick-3.0.1
But one problem went wrong. I just said I couldn't find MagickWand. h:
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
But I obviously installed ImageMagick correctly. GOOGLE for half a day, but I can't solve this problem. After comparing with ImageMagick on another server, I found that the directory structure of ImageMagick 6.8 has changed, and the header file of the old version is placed in the/usr/local/include/ImageMagick directory.
While ImageMagick 6.8 is placed at/usr/local/include/ImageMagick-6
Add Soft Connection
The order is as follows:
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
make && make && install
Compiled through!