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

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

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

教你隐藏Linux的命令行历史

有的时候你可能不想让一些命令记录你的的命令行历史中,本文整理了多种方法让你可以参考。
收藏 0 赞 0 分享

怎样在Linux上录制你的终端操作及回放

在这次的文章中,我们将简单的了解一下如何在Linux上录制和回放终端会话及以gif格式记录的方法。
收藏 0 赞 0 分享

SUSE Linux登录出现黑屏解决方法

登录linux时出现黑屏的找到这篇解决SUSE的黑屏问题
收藏 0 赞 0 分享

个人学习Linux知识总结第1/4页

个人学习linux经常用到的小知识,方便大家以后查阅
收藏 0 赞 0 分享

Linux 下rename 命令的用法第1/2页

刚学习linux的时候,对文件重命名首先想到的就是rename命令,但是按照在windows下对文件重命名的方式试了N多次都没有反应,在网上一搜索,发现很多人都对rename命令知之甚少,甚至有一部分人说linux下没有rename命令,建议大家用mv命令。鉴于此,于是man r
收藏 0 赞 0 分享

Centos 源

Centos操作说明
收藏 0 赞 0 分享

linux备份文件命令收集

收集一些linux下实现文件备份
收藏 0 赞 0 分享

Linux rdesktop操作系统下远程登录Windows XP桌面

众所周知XP下有"远程桌面连接"用来远程登录桌面,设置也非常简单。那有没有什么办法在linux下远程登录到XP呢?有。用rdesktop这个linux下的软件就能实现。
收藏 0 赞 0 分享

Linux操作系统添加新硬盘方法

linux下添加硬盘的方法
收藏 0 赞 0 分享

CentOS 5.1 4.6最新官方下载地址列表

最近公司接触到centos系统,于是找了下,不太容易找到,所以我直接把官方的下载地址,给贴出来了,方便以后下载
收藏 0 赞 0 分享
查看更多