CentOS编译安装PHP常见错误及解决办法

所属分类: 操作系统 / unix linux 阅读数: 108
收藏 0 赞 0 分享

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

yum -y install ncurses-devel

2.configure: error: xml2-config not found. Please check your libxml2 installation.

yum -y install libxml2 libxml2-devel

3.configure: error: Cannot find OpenSSL's

yum -y install openssl-devel

4.configure: error: libjpeg.(a|so) not found

yum -y install gd gd-devel

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

yum -y install net-snmp-devel

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

yum -y install zlib-devel openssl-devel

8.configure: error: libxpm.(a|so) not found.

yum -y install libxpm-dev

9.configure: error: freetype.h not found.

yum install freetype-devel

10.configure: error: …No recognized SSL/TLS toolkit detected

yum -y install libssl-dev

11.Configure: error: Please reinstall the BZip2 distribution

yum install bzip2 bzip2-devel

12.Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/

yum install curl curl-devel

13.Configure: error: Unable to locate gmp.h

yum install gmp-devel

14.configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

yum -y install postgresql-devel

15.Configure: error: Please reinstall the ncurses distribution

yum install ncurses ncurses-devel

16.Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!

yum install unixODBC-devel

17.Configure: error: Cannot find pspell

yum install pspell-devel

18.configure: error: mcrypt.h not found. Please reinstall libmcrypt.

yum install libmcrypt libmcrypt-devel

19.Configure: error: snmp.h not found. Check your SNMP installation.

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

yum -y install flex

22.configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

yum -y install zlib-devel openssl-devel

以上所述是小编给大家介绍的CentOS编译安装PHP常见错误及解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

更多精彩内容其他人还在看

samba共享目录权限问题

这篇文章主要介绍了samba共享目录权限问题,首先大家需要安装samba,然后在创建文件夹,具体创建方法和内容详情大家可以参考下本文
收藏 0 赞 0 分享

Linux中的info指令详解

info是一种文档格式,也是阅读此格式文档的阅读器;我们常用它来查看Linux命令的info文档。接下来通过本文给大家介绍Linux中的info指令,需要的朋友参考下吧
收藏 0 赞 0 分享

Linux上安装Mysql及简单的使用详解

这篇文章主要介绍了Linux上安装Mysql及简单的使用讲解,非常不错,具有参考借鉴价值,需要的朋友参考下
收藏 0 赞 0 分享

ubuntu16.04安装搜狗拼音的图文教程

在ubuntu16.04安装搜狗拼音,首先我们在官网上面下载最新的搜狗拼音输入法linux版本的,具体安装方法,本文给大家介绍的非常详细,需要的的朋友参考下
收藏 0 赞 0 分享

Linux忘记root密码怎么办

这篇文章主要介绍了Linux忘记root密码的解决办法,本文给大家介绍了三个系统的修改方法,具体内容详情大家通过本文学习吧
收藏 0 赞 0 分享

Ubuntu下安装配置Docker的教程详解

这篇文章主要介绍了Ubuntu下安装配置Docker的教程详解,本文图文并茂介绍的非常详细,需要的朋友参考下
收藏 0 赞 0 分享

Ubuntu更换硬盘的教程

这篇文章主要介绍了Ubuntu更换硬盘的教程,非常不错,具有参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

Ubuntu 16.04源码编译安装PHP 5.6.29的教程

这篇文章主要介绍了Ubuntu 16.04源码编译安装PHP 5.6.29的教程,非常不错,具有参考借鉴价值,需要的的朋友参考下吧
收藏 0 赞 0 分享

Ubuntu16.04安装MySQL5.7的教程

这篇文章主要介绍了Ubuntu16.04安装MySQL5.7的教程详解,非常不错,具有参考借鉴价值,需要的朋友参考下吧
收藏 0 赞 0 分享

Ubuntu 14.04 搭建 apt-get 服务器的教程

这篇文章主要介绍了Ubuntu 14.04 搭建 apt-get 服务器的教程,非常不错,具有参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多