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 相关文章推荐
PHP字符转义相关函数小结(php下的转义字符串)
Apr 12 PHP
php中显示数组与对象的实现代码
Apr 18 PHP
深入解析PHP的引用计数机制
Jun 14 PHP
本地机apache配置基于域名的虚拟主机详解
Aug 10 PHP
php调用C代码的实现方法
Mar 11 PHP
ThinkPHP CURD方法之table方法详解
Jun 18 PHP
PHP各种异常和错误的拦截方法及发生致命错误时进行报警
Jan 19 PHP
php通过文件头判断格式的方法
May 28 PHP
PHP 5.6.11中CURL模块问题的解决方法
Aug 08 PHP
CI框架实现框架前后端分离的方法详解
Dec 30 PHP
phpcms实现验证码替换及phpcms实现全站搜索功能教程详解
Dec 13 PHP
php的lavarel框架中join和orWhere的用法
Dec 28 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
一个取得文件扩展名的函数
2006/10/09 PHP
PHP 加密/解密函数 dencrypt(动态密文,带压缩功能,支持中文)
2009/01/30 PHP
用php获取本周,上周,本月,上月,本季度日期的代码
2009/08/05 PHP
PHP表单递交控件名称含有点号(.)会被转化为下划线(_)的处理方法
2013/01/06 PHP
PHP面向对象教程之自定义类
2014/06/10 PHP
浅析php-fpm静态和动态执行方式的比较
2016/11/09 PHP
使用phpQuery获取数组的实例
2017/03/13 PHP
PHP获取数组中单列值的方法
2017/06/10 PHP
详细解读php的命名空间(二)
2018/02/21 PHP
php进程(线程)通信基础之System V共享内存简单实例分析
2019/11/09 PHP
一个不错的字符串转码解码函数(自写)
2014/07/31 Javascript
javascript获取dom的下一个节点方法
2014/09/05 Javascript
jQuery插件slider实现拖动滑块选取价格范围
2015/04/30 Javascript
JavaScript中removeChild 方法开发示例代码
2016/08/15 Javascript
Angular 向组件传递模板的两种方法
2018/02/23 Javascript
vue和better-scroll实现列表左右联动效果详解
2019/04/29 Javascript
JavaScript实现猜数字游戏
2020/05/20 Javascript
深入解析微信小程序开发中遇到的几个小问题
2020/07/11 Javascript
flask中使用SQLAlchemy进行辅助开发的代码
2013/02/10 Python
pandas使用get_dummies进行one-hot编码的方法
2018/07/10 Python
python使用for循环计算0-100的整数的和方法
2019/02/01 Python
Django 多表关联 存储 使用方法详解 ManyToManyField save
2019/08/09 Python
Python socket连接中的粘包、精确传输问题实例分析
2020/03/24 Python
Python基于httpx模块实现发送请求
2020/07/07 Python
Css3实现无缝滚动防抖
2020/09/14 HTML / CSS
西班牙最大的在线滑板和街头服饰商店:Fillow.net
2019/04/15 全球购物
毕业生个人求职信范文分享
2014/01/05 职场文书
高三家长寄语
2014/04/03 职场文书
关于读书的演讲稿
2014/05/07 职场文书
司法所长先进事迹
2014/06/02 职场文书
小学开学标语
2014/07/01 职场文书
幸福中国演讲稿
2014/09/12 职场文书
就业导师推荐信范文
2015/03/27 职场文书
2015年度酒店客房部工作总结
2015/05/25 职场文书
PHP实现考试倒计时功能代码
2021/04/16 PHP
Python基础之元类详解
2021/04/29 Python