Home >php教程 >php手册 >configure error:安装php时出现configure: error: Unable to find gd.h anywhere under,错误解决

configure error:安装php时出现configure: error: Unable to find gd.h anywhere under,错误解决

WBOY
WBOYOriginal
2016-06-21 08:50:092086browse

在进行PHP开发环境源码安装时,在安装PHP-5.2.6是出现:configure: error: Unable to find gd.h anywhere under错误
解决方式:
1.在gd库的安装路径下搜索没有发现gd.h文件,但是在/etc/include下有gd.h文件
2.在网上搜索发现重装gd库可解决
3.重新安装gd库,在安装时出现:
 

<ol class="dp-xml">
<li class="alt"><span><span>configure.ac:64: error: possibly undefined macro: AM_ICONV </span></span></li>
<li><span>If this token and others are legitimate, please use m4_pattern_allow. </span></li>
<li class="alt"><span>See the Autoconf documentation.  </span></li>
</ol>

错误,在./configure 后加上--enable-m4_pattern_allow 重新编译即可通过
4.重新编译php,通过

本文链接http://www.cxybl.com/html/wlbc/Php/20130316/37177.html



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn