PHP编译configure时常见错误的总结


Posted in PHP onAugust 17, 2017

PHP编译configure时常见错误的总结

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

以上就是php编译configure常见错误的总结,如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站 的支持!

PHP 相关文章推荐
一个可以删除字符串中HTML标记的PHP函数
Oct 09 PHP
discuz安全提问算法
Jun 06 PHP
php mssql 分页SQL语句优化 持续影响
Apr 26 PHP
Session服务器配置指南与使用经验的深入解析
Jun 17 PHP
php_screw安装使用教程(另一个PHP代码加密实现)
May 29 PHP
php使用Jpgraph绘制3D饼状图的方法
Jun 10 PHP
在Mac上编译安装PHP7的开发环境
Jul 28 PHP
PHP中addslashes()和stripslashes()实现字符串转义和还原用法实例
Jan 07 PHP
php等比例缩放图片及剪切图片代码分享
Feb 13 PHP
如何正确配置Nginx + PHP
Jul 15 PHP
PHP Oauth授权和本地加密实现方法
Aug 12 PHP
PHP魔术方法之__call与__callStatic使用方法
Jul 23 PHP
基于PHP常用文件函数和目录函数整理
Aug 17 #PHP
PHP实现的堆排序算法详解
Aug 17 #PHP
基于php编程规范(详解)
Aug 17 #PHP
PHP数据库操作四:mongodb用法分析
Aug 16 #PHP
PHP Laravel 上传图片、文件等类封装
Aug 16 #PHP
PHP数据库操作三:redis用法分析
Aug 16 #PHP
PHP数据库操作二:memcache用法分析
Aug 16 #PHP
You might like
在windows平台上构建自己的PHP实现方法(仅适用于php5.2)
2013/07/05 PHP
Yii2 hasOne(), hasMany() 实现三表关联的方法(两种)
2017/02/15 PHP
PHP实现阿里大鱼短信验证的实例代码
2017/07/10 PHP
PHP+MySQL实现消息队列的方法分析
2018/05/09 PHP
PHP过滤器 filter_has_var() 函数用法实例分析
2020/04/23 PHP
HR vs CL BO3 第二场 2.13
2021/03/10 DOTA
可以把编码转换成 gb2312编码lib.UTF8toGB2312.js
2007/08/21 Javascript
js弹出层永远居中实现思路及代码
2013/11/29 Javascript
Jquery基础教程之DOM操作
2015/08/19 Javascript
JS实现日期时间动态显示的方法
2015/12/07 Javascript
JavaScript遍历求解数独问题的主要思路小结
2016/06/12 Javascript
jquery事件与绑定事件
2017/03/16 Javascript
使用npm安装最新版本nodejs
2018/01/18 NodeJs
vue.js实现只弹一次弹框
2018/01/29 Javascript
jQuery HTML css()方法与css类实例详解
2020/05/20 jQuery
Python抽象类的新写法
2015/06/18 Python
用python实现将数组元素按从小到大的顺序排列方法
2018/07/02 Python
python的turtle库使用详解
2019/05/10 Python
matplotlib实现显示伪彩色图像及色度条
2019/12/07 Python
Python3变量与基本数据类型用法实例分析
2020/02/14 Python
python初步实现word2vec操作
2020/06/09 Python
python通过函数名调用函数的几种场景
2020/09/23 Python
python递归函数用法详解
2020/10/26 Python
Django如何重置migration的几种情景
2021/02/24 Python
HTML5实现获取地理位置信息并定位功能
2015/04/25 HTML / CSS
canvas绘制树形结构可视图形的实现
2020/04/03 HTML / CSS
印度最大的网上花店:Ferns N Petals(鲜花、礼品和蛋糕)
2017/10/16 全球购物
小学生期末自我鉴定
2014/01/19 职场文书
小学教师师德承诺书
2014/05/23 职场文书
个人合伙协议书范本
2014/10/14 职场文书
社区六一儿童节活动总结
2015/02/11 职场文书
反邪教警示教育活动总结
2015/05/09 职场文书
入党介绍人考察意见
2015/06/01 职场文书
2021-4-3课程——SQL Server查询【2】
2021/04/05 SQL Server
基于MySql验证的vsftpd虚拟用户
2021/11/07 MySQL
pandas时间序列之pd.to_datetime()的实现
2022/06/16 Python