CentOS编译安装PHP常见错误及解决办法
1.configure:error:Nocurses/termcaplibraryfound
yum-yinstallncurses-devel
2.configure:error:xml2-confignotfound.Pleasecheckyourlibxml2installation.
yum-yinstalllibxml2libxml2-devel
3.configure:error:CannotfindOpenSSL's
yum-yinstallopenssl-devel
4.configure:error:libjpeg.(a|so)notfound
yum-yinstallgdgd-devel
5.configure:error:Couldnotfindnet-snmp-configbinary.Pleasecheckyournet-snmpinstallation.
yum-yinstallnet-snmp-devel
6.configure:error:cannotfindoutputfromlex;givingup
yum-yinstallflex
7.configure:error:mod_deflatehasbeenrequestedbutcannotbebuiltduetoprerequisitefailures
yum-yinstallzlib-developenssl-devel
8.configure:error:libxpm.(a|so)notfound.
yum-yinstalllibxpm-dev
9.configure:error:freetype.hnotfound.
yuminstallfreetype-devel
10.configure:error:…NorecognizedSSL/TLStoolkitdetected
yum-yinstalllibssl-dev
11.Configure:error:PleasereinstalltheBZip2distribution
yuminstallbzip2bzip2-devel
12.Configure:error:Pleasereinstallthelibcurldistribution–easy.hshouldbein/include/curl/
yuminstallcurlcurl-devel
13.Configure:error:Unabletolocategmp.h
yuminstallgmp-devel
14.configure:error:Cannotfindlibpq-fe.h.PleasespecifycorrectPostgreSQLinstallationpath
yum-yinstallpostgresql-devel
15.Configure:error:Pleasereinstallthencursesdistribution
yuminstallncursesncurses-devel
16.CheckingforunixODBCsupport…configure:error:ODBCheaderfile‘/usr/include/sqlext.h'notfound!
yuminstallunixODBC-devel
17.Configure:error:Cannotfindpspell
yuminstallpspell-devel
18.configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.
yuminstalllibmcryptlibmcrypt-devel
19.Configure:error:snmp.hnotfound.CheckyourSNMPinstallation.
yuminstallnet-snmpnet-snmp-devel
20.开启LDAP服务
yum-yinstallopenldap-developenldap-serversopenldap-clients
21.configure:error:cannotfindoutputfromlex;givingup
yum-yinstallflex
22.configure:error:mod_deflatehasbeenrequestedbutcannotbebuiltduetoprerequisitefailures
yum-yinstallzlib-developenssl-devel
总结
以上所述是小编给大家介绍的CentOS编译安装PHP常见错误及解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!