ImageMagick - PECL问题 - 找不到头文件MagickWand.h [英] ImageMagick - PECL issue - Cannot locate header file MagickWand.h
问题描述
我们在安装ImageMagick PECL时遇到此错误:
We are getting this error while installing ImageMagick PECL:
检查ImageMagick MagickWand API配置程序...在
中找到/ usr / local / bin / MagickWand-config检查ImageMagick版本是否为
至少6.2.4 ...找到版本6.8.6 Q16检查MagickWand.h
头文件... configure:error :找不到头文件
MagickWand.h错误:`/ root / tmp / pear / imagick / configure --with-imagick'
安装在/ usr / local / lib / php中的扩展名imagick.so失败.ini
/ usr / local / bin / php没有php.ini整理
/usr/local/cpanel/3rdparty/php/53/etc/php.ini ...没有变化
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 ?
推荐答案
这个帖子已经过时了,但我今天在Centos 7上通过安装ImageMagick-devel软件包解决了这个问题:
This thread is old, but I solved this issue today on a Centos 7 by installing ImageMagick-devel package:
yum install ImageMagick-devel
希望这有帮助。
这篇关于ImageMagick - PECL问题 - 找不到头文件MagickWand.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!