时间:2021-05-26
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-develdebian: apt-get install libncurses5-dev2、configure: error: xml2-config not found. Please check your libxml2 installation.
centos: yum -y install libxml2 libxml2-develdebian : apt-get install libxml2-dev3、configure: error: Cannot find OpenSSL's
centos: yum -y install openssl-devel4、configure: error: libjpeg.(a|so) not found
centos: yum -y install gdcentos: yum -y install gd-develdebian: apt-get install libjpeg-dev5、configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev6、configure: error: cannot find output from lex; giving up
yum -y install flex7、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
centos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev8、configure: error: libxpm.(a|so) not found.
centos: yum -y install libxpm-devdebian: apt-get install libxpm-dev9、configure: error: freetype.h not found.
centos: yum install freetype-develdebian: apt-get install libfreetype6-dev10、configure: error: …No recognized SSL/TLS toolkit detected
centos: yum -y install libssl-devdebian: apt-get install libssl-dev11、Configure: error: Please reinstall the BZip2 distribution
centos: yum install bzip2 bzip2-develdebian: apt-get install bzip2-devel12、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-devel14、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-devel16、Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h' not found!
Solutions :centos: yum install unixODBC-devel17、Configure: error: Cannot find pspell
Solutions :centos: yum install pspell-devel18、configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)# apt-get install libmcrypt-dev19、Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :yum install net-snmp net-snmp-devel20、开启LDAP服务还需要
yum -y install openldap-devel openldap-servers openldap-clients21、configure: error: cannot find output from lex; giving up
centos: yum -y install flex22、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
centos: yum -y install zlib-devel openssl-develdebian: apt-get install zlib1g-dev以上就是php编译configure常见错误的总结,如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站 的支持!
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
编译最新的2.0.35版本,用默认的./configure编译当make的时候,出现以下错误configure.ac:64:error:possiblyunde
首先,进入源码目录cdphp-5.2.13/ext/ftp#运行phpize生成configure/usr/local/php/bin/phpize#编译,指定
有一朋友liunx主机配置php的gd库未支持jpeg,需要重新编译支持jpeg,凭经验用./configure–with-gd–wit
从php5.0开始增加mysql(i)支持,新加的功能都以对象的形式添加i表示改进的意思功能多、效率高、稳定编译时参数:./configure--with-my
本文实例总结了php用户注册时常用的检验函数。分享给大家供大家参考。具体分析如下:php用户注册时常用的一些常用检验函数总结,包括有检测提交的数据是否符合用户名