PHP编译configure时常见错误的总结
php  /  管理员 发布于 7年前   137
PHP编译configure时常见错误的总结 PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!出错最多的就是安装PHP扩展的时候了。其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简单,虽然网上有很多configure参数,但是那不一定是适合你的,因为很多都直接关系着你的系统版本和内核。因此要自己亲自不断的调试,才能完全安装成功。 本文总结了一些常见的configure错误信息和解决这些错误的经验。 1、configure: error: No curses/termcap library found 网上有的说法是:Cwith-named-curses-libs=/usr/lib/libncursesw.so.5 其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是 2、configure: error: xml2-config not found. Please check your libxml2 installation. 3、configure: error: Cannot find OpenSSL's 4、configure: error: libjpeg.(a|so) not found 5、configure: error: libpng.(a|so) not found. 6、configure: error: cannot find output from lex; giving up 7、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures 8、configure: error: libxpm.(a|so) not found. 9、configure: error: freetype.h not found. 10、configure: error: …No recognized SSL/TLS toolkit detected 11、Configure: error: Please reinstall the BZip2 distribution 12、Configure: error: Please reinstall the libcurl distribution C easy.h should be in /include/curl/ 13、Configure: error: Unable to locate gmp.h 14、Configure: error: Cannot find MySQL header files under /usr. Note that the MySQL client library is not bundled anymore! 15、Configure: error: Please reinstall the ncurses distribution 16、Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found! 17、Configure: error: Cannot find pspell 18、configure: error: mcrypt.h not found. Please reinstall libmcrypt. 19、Configure: error: snmp.h not found. Check your SNMP installation. 20、开启LDAP服务还需要 21、configure: error: cannot find output from lex; giving up 22、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures 以上就是php编译configure常见错误的总结,如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站 的支持!centos: yum -y install ncurses-develdebian: apt-get install libncurses5-dev
centos: yum -y install libxml2 libxml2-develdebian : apt-get install libxml2-dev
centos: yum -y install openssl-devel
centos: yum -y install gdcentos: yum -y install gd-develdebian: apt-get install libjpeg-dev
apt-get install libpng12-dev
yum -y install flex
centos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev
centos: yum -y install libxpm-devdebian: apt-get install libxpm-dev
centos: yum install freetype-develdebian: apt-get install libfreetype6-dev
centos: yum -y install libssl-devdebian: apt-get install libssl-dev
centos: yum install bzip2 bzip2-develdebian: apt-get install bzip2-devel
centos: yum install curl curl-devel (For Redhat & Fedora)# install libcurl4-gnutls-dev (For Ubuntu)
centos: yum install gmp-devel
yum install mysql-devel (For Redhat & Fedora)# apt-get install libmysql++-dev (For Ubuntu)
Solutions :centos: yum install ncurses ncurses-devel
Solutions :centos: yum install unixODBC-devel
Solutions :centos: yum install pspell-devel
Solutions :yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)# apt-get install libmcrypt-dev
Solutions :yum install net-snmp net-snmp-devel
yum -y install openldap-devel openldap-servers openldap-clients
centos: yum -y install flex
centos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev
您可能感兴趣的文章:
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号