原文:https://blog.csdn.net/dodott/article/details/49664379

PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!出错最多的就是安装PHP扩展的时候了。其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简单,虽然网上有很多configure参数,但是那不一定是适合你的,因为很多都直接关系着你的系统版本和内核。因此要自己亲自不断的调试,才能完全安装成功。

本文总结了一些常见的configure错误信息和解决这些错误的经验。

1、configure: error: No curses/termcap library found

网上有的说法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5
其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是
centos: yum -y install ncurses-devel
debian: apt-get install libncurses5-dev

2、configure: error: xml2-config not found. Please check your libxml2 installation.
centos: yum -y install libxml2 libxml2-devel
debian: apt-get install libxml2-dev

3、configure: error: Cannot find OpenSSL’s
centos: yum -y install openssl-devel

4、configure: error: libjpeg.(a|so) not found
centos: yum -y install gd
centos: yum -y install gd-devel
debian: apt-get install libjpeg-dev

5、configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev

6、configure: error: cannot find output from lex; giving up
yum -y install flex

7、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev

8、configure: error: libxpm.(a|so) not found.
centos: yum -y install libxpm-dev
debian: apt-get install libxpm-dev

9、configure: error: freetype.h not found.
centos: yum install freetype-devel
debian: apt-get install libfreetype6-dev

10、configure: error: …No recognized SSL/TLS toolkit detected
centos: yum -y install libssl-dev
debian: apt-get install libssl-dev

11、Configure: error: Please reinstall the BZip2 distribution
centos: yum install bzip2 bzip2-devel
debian: apt-get install bzip2-devel

12、Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/
centos: yum install curl curl-devel (For Redhat & Fedora)
# install libcurl4-gnutls-dev (For Ubuntu)

13、Configure: error: Unable to locate gmp.h
centos: yum install gmp-devel

14、Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore!
yum install mysql-devel (For Redhat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)

15、Configure: error: Please reinstall the ncurses distribution
Solutions :
centos: yum install ncurses ncurses-devel

16、Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
Solutions :
centos: yum install unixODBC-devel

17、Configure: error: Cannot find pspell
Solutions :
centos: yum install pspell-devel

18、configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :
yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-get install libmcrypt-dev

19、Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :
yum install net-snmp net-snmp-devel

20、开启LDAP服务还需要
yum -y install openldap-devel openldap-servers openldap-clients

21、configure: error: cannot find output from lex; giving up
centos: yum -y install flex

22、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
centos: yum -y install zlib-devel openssl-devel
debian: apt-get install zlib1g-dev

23、

configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.

centos:yum -y install net-snmp-devel

转载于:https://www.cnblogs.com/Gnnnny/p/10983581.html

PHP编译configure时常见错误(转)相关推荐

  1. 编译php时的configure,PHP编译configure时常见错误

    PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!出错最多的就是安装PHP扩展的时候了.其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简单,虽然网上有 ...

  2. PHP编译安装时常见错误解决办法,php编译常见错误

    PHP编译安装时常见错误解决办法,php编译常见错误 1.configure: error: xslt-config not found. Please reinstall the libxslt & ...

  3. linux libvpx编译安装,linux编译安装时常见错误解决办法

    **configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution** 复 ...

  4. linux编译安装的报错,linux编译安装时常见错误解决办法

    This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html ...

  5. php 编译安装 png.h,PHP编译安装时常见错误解决办法【大全】

    This article is post on https://coderwall.com/p/ggmpfa configure: error: xslt-config not found. Plea ...

  6. Java的知识点6—— 强制类型转换、基本类型转化时常见错误和问题、 简单的键盘输入和输出

     强制类型转换 强制类型转换,又被称为造型,用于显式的转换一个数值的类型.在有可能丢失信息的情况下进行的转换是通过造型来完成的,但可能造成精度降低或溢出. public class Test2 {pu ...

  7. 安装mysql5.5时常见错误--缺失make

    首先我这是一台CentOS release 6.2 (Final),新安装的系统,没有任何软件及库文件.安装mysql5.5之前,先需要大概了解一下,需要注意的信息,mysql5.5的安装与其它版本不 ...

  8. PHP编译过程中常见错误信息的解决方法

    在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决.以下是具体的一些解决办法: checking for BZip2 support- yes ch ...

  9. linux中源码编译安装mysql常见错误

    一) #./configure --prefix=/usr/local/mysql-5.1.54 (mysql指定路径安装报错:) 如下: checking for termcap functions ...

最新文章

  1. UVA11817 Tunnelling the Earth(计算几何、经纬度转空间坐标、球面距离)
  2. 不是程序员学python有什么用-程序员的基本功:为什么非要用Python,其他语言不好吗?...
  3. ORACLE+RAC+ASM环境下添加redo日志组
  4. 从Zero到Hero,一文掌握Python关键代码
  5. 普通卷积armv7-neon指令集实现—XNNPACK
  6. 医学图像处理期末复习(四)
  7. LeetCode单链表题目测试代码(只需添加对应题目,本地即可debug)
  8. 程序员到底要不要重复造轮子?
  9. 14 SD配置-企业结构-分配-分配销售组织-分销渠道-工厂
  10. filewriter判断是否关闭_IO流详解
  11. python每天学多久_怎么自学python,大概要多久?
  12. MySQL备份shell_shell---mysql备份
  13. Python 数据结构与算法——侏儒排序
  14. Android------APP FPS测试
  15. EasyClick易点云测 EC超级拓展插件laoleng.js
  16. jzoj6152. 【GDOI2019Day2模拟2019.4.29】Endless (倍增维护并查集,平方串)
  17. 利用python制作马赛克图
  18. 拉格朗日乘数和KTT条件
  19. 话题 | 手机充电越充越少,90%的人都遇过这些囧事,有你吗?
  20. 无所不能的python是如何解决程序员的终身大事的?

热门文章

  1. 插入排序(边输边排)
  2. 字符串解析成easyui-tree的格式
  3. ajax中异步属性,ajax中的async属性值之同步和异步及同步和异步区别
  4. HBase之Region上Spilt流程分析
  5. jpa级联添加_JPA中的一对多双向关联与级联操作
  6. (48)Verilog HDL UART发送设计
  7. lamp 重启mysql_lamp常用命令 --Ubuntu下启动/重启/停止apache,mysql服务器
  8. prefetch 和preload_preload_prefetch
  9. python3 在线工具_Curl转python在线工具
  10. QT5日志功能(qDebug、qWarnng、qCritical、qFatal)