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

所属分类: 操作系统 / unix linux 阅读数: 80
收藏 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常见错误及解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

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

vm下centos7 mini版 NAT模式下配置静态IP的方法

这篇文章主要介绍了vm下centos7 mini版 NAT模式下配置静态IP 的方法,本文图文并茂给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

window10系统安装Ubuntu18.04系统的图文教程详解

这篇文章主要介绍了window10系统安装Ubuntu18.04系统,本文图文并茂给大家介绍的非常详细,具有一定的参考借鉴价值 ,需要的朋友可以参考下
收藏 0 赞 0 分享

linux yum安装指定版本mysql的教程详解

这篇文章主要介绍了linux yum安装指定版本mysql的教程,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

ubuntu系统下Python虚拟环境的安装和使用教程

这篇文章主要介绍了ubuntu系统下Python虚拟环境的安装和使用教程,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

在 Ubuntu 上安装 pip的方法

这篇文章主要介绍了在 Ubuntu 上安装 pip的方法,非常不错,具有一定的参考借鉴价值,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

最全的VI命令与快捷键大全集合建议收藏

vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里为大家分享VI命令,需要的朋友可以参考下
收藏 0 赞 0 分享

详解Ubuntu18.04下配置Nginx+RTMP+HLS+HTTPFLV服务器实现点播/直播/录制功能

这篇文章主要介绍了Ubuntu18.04下配置Nginx+RTMP+HLS+HTTPFLV服务器实现点播/直播/录制功能,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

Centos7重启apache、nginx、mysql、php-fpm命令方法

这篇文章主要介绍了Centos7重启apache、nginx、mysql、php-fpm命令方法,需要的朋友可以参考下
收藏 0 赞 0 分享

linux 部署apache服务的步骤

这篇文章主要介绍了linux部署apache服务的步骤,部署apache服务的步骤本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
收藏 0 赞 0 分享

统计Linux 中文件和文件夹/目录的数量(示例代码)

这篇文章主要介绍了统计Linux 中文件和文件夹/目录的数量(示例代码),需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多