PHP编译安装时常见错误解决办法
Thisarticleispostonhttps://coderwall.com/p/ggmpfa
configure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution
yum-yinstalllibxslt-devel
configure:error:Couldnotfindnet-snmp-configbinary.Pleasecheckyournet-snmpinstallation.
yum-yinstallnet-snmp-devel
configure:error:Pleasereinstallreadline-Icannotfindreadline.h
yum-yinstallreadline-devel
configure:error:Cannotfindpspell
yum-yinstallaspell-devel
checkingforunixODBCsupport...configure:error:ODBCheaderfile'/usr/include/sqlext.h'notfound!
yum-yinstallunixODBC-devel
configure:error:UnabletodetectICUprefixor/usr/bin/icu-configfailed.PleaseverifyICUinstallprefixandmakesureicu-configworks.
yum-yinstalllibicu-devel
configure:error:utf8mime2text()hasnewsignature,butU8TCANONICALismissing.Thisshouldnothappen.Checkconfig.logforadditionalinformation.
yum-yinstalllibc-client-devel
configure:error:freetype.hnotfound.
yum-yinstallfreetype-devel
configure:error:xpm.hnotfound.
yum-yinstalllibXpm-devel
configure:error:png.hnotfound.
yum-yinstalllibpng-devel
configure:error:vpx_codec.hnotfound.
yum-yinstalllibvpx-devel
configure:error:Cannotfindenchant
yum-yinstallenchant-devel
configure:error:Pleasereinstallthelibcurldistribution-easy.hshouldbein/include/curl/
yum-yinstalllibcurl-devel
LAOGAOadded20140907:
configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.
wgetftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz tarzxflibmcrypt-2.5.7.tar.gz cdlibmcrypt-2.5.7 ./configure make&&makeinstall
added20141003:
Cannotfindimap
ln-s/usr/lib64/libc-client.so/usr/lib/libc-client.so
configure:error:utf8_mime2text()hasnewsignature,butU8T_CANONICALismissing.
yum-yinstalllibc-client-devel
Cannotfindldap.h
yum-yinstallopenldap yum-yinstallopenldap-devel
configure:error:Cannotfindldaplibrariesin/usr/lib
cp-frp/usr/lib64/libldap*/usr/lib/
configure:error:Cannotfindlibpq-fe.h.PleasespecifycorrectPostgreSQLinstallationpath
yum-yinstallpostgresql-devel
configure:error:Pleasereinstallthelibcurldistribution
yum-yinstallcurl-devel
configure:error:Couldnotfindnet-snmp-configbinary.Pleasecheckyournet-snmpinstallation.
yum-yinstallnet-snmp-devel
configure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution
yum-yinstalllibxslt-devel
checkingforBZip2support…yescheckingforBZip2indefaultpath…notfoundconfigure:error:PleasereinstalltheBZip2distribution
Fix:
yum-yinstallbzip2-devel
checkingforcURLsupport…yescheckingifweshouldusecURLforurlstreams…nocheckingforcURLindefaultpath…notfoundconfigure:error:Pleasereinstallthelibcurldistribution–easy.hshouldbein/include/curl/
Fix:
yum-yinstallcurl-devel
checkingforcurl_multi_strerrorin-lcurl…yescheckingforQDBMsupport…nocheckingforGDBMsupport…nocheckingforNDBMsupport…noconfigure:error:DBA:Couldnotfindnecessaryheaderfile(s).
Fix:
yum-yinstalldb4-devel
checkingforfabsf…yescheckingforfloorf…yesconfigure:error:jpeglib.hnotfound.
Fix:
yum-yinstalllibjpeg-devel
checkingforfabsf…yescheckingforfloorf…yescheckingforjpeg_read_headerin-ljpeg…yesconfigure:error:png.hnotfound.
Fix:
yum-yinstalllibpng-devel
checkingforpng_write_imagein-lpng…yesIfconfigurefailstry–with-xpm-dir=
configure:error:freetype.hnotfound.
Fix:
ReconfigureyourPHPwiththefollowingoption.--with-xpm-dir=/usr
checkingforpng_write_imagein-lpng…yesconfigure:error:libXpm.(a|so)notfound.
Fix:
yum-yinstalllibXpm-devel
checkingforbind_textdomain_codesetin-lc…yescheckingforGNUMPsupport…yesconfigure:error:Unabletolocategmp.h
Fix:
yum-yinstallgmp-devel
checkingforutf8_mime2textsignature…newcheckingforU8T_DECOMPOSE…configure:error:utf8_mime2text()hasnewsignature,butU8T_CANONICALismissing.Thisshouldnothappen.Checkconfig.logforadditionalinformation.
Fix:
yum-yinstalllibc-client-devel
checkingforLDAPsupport…yes,sharedcheckingforLDAPCyrusSASLsupport…yesconfigure:error:Cannotfindldap.h
Fix:
yum-yinstallopenldap-devel
checkingformysql_set_character_setin-lmysqlclient…yescheckingformysql_stmt_next_resultin-lmysqlclient…nocheckingforOracleDatabaseOCI8support…nocheckingforunixODBCsupport…configure:error:ODBCheaderfile‘/usr/include/sqlext.h'notfound!
Fix:
yum-yinstallunixODBC-devel
checkingforPostgreSQLsupportforPDO…yes,sharedcheckingforpg_config…notfoundconfigure:error:Cannotfindlibpq-fe.h.PleasespecifycorrectPostgreSQLinstallationpath
Fix:
yum-yinstallpostgresql-devel
checkingforsqlite3supportforPDO…yes,sharedcheckingforPDOincludes…(cached)/usr/local/src/php-5.3.7/extcheckingforsqlite3filesindefaultpath…notfoundconfigure:error:Pleasereinstallthesqlite3distribution
Fix:
yum-yinstallsqlite-devel
checkingforutsname.domainname…yescheckingforPSPELLsupport…yesconfigure:error:Cannotfindpspell
Fix:
yum-yinstallaspell-devel
checkingwhethertoenableUCDSNMPhack…yescheckingfordefault_store.h…no
checkingforkstat_readin-lkstat…nocheckingforsnmp_parse_oidin-lsnmp…nocheckingforinit_snmpin-lsnmp…noconfigure:error:SNMPsanitycheckfailed.Pleasecheckconfig.logformoreinformation.
Fix:
yum-yinstallnet-snmp-devel
checkingwhethertoenableXMLWritersupport…yes,sharedcheckingforxml2-configpath…(cached)/usr/bin/xml2-configcheckingwhetherlibxmlbuildworks…(cached)yescheckingforXSLsupport…yes,sharedconfigure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution
Fix:
yum-yinstalllibxslt-devel
configure:error:xml2-confignotfound.Pleasecheckyourlibxml2installation.
Fix:
yum-yinstalllibxml2-devel
checkingforPCREheaderslocation…configure:error:Couldnotfindpcre.hin/usr
Fix:
yum-yinstallpcre-devel
configure:error:CannotfindMySQLheaderfilesunderyes.NotethattheMySQLclientlibraryisnotbundledanymore!
Fix:
yum-yinstallmysql-devel
checkingforunixODBCsupport…configure:error:ODBCheaderfile‘/usr/include/sqlext.h'notfound!
Fix:
yum-yinstallunixODBC-devel
checkingforpg_config…notfoundconfigure:error:Cannotfindlibpq-fe.h.PleasespecifycorrectPostgreSQLinstallationpath
Fix:
yum-yinstallpostgresql-devel
configure:error:Cannotfindpspell
Fix:
yum-yinstallpspell-devel
configure:error:Couldnotfindnet-snmp-configbinary.Pleasecheckyournet-snmpinstallation.
Fix:
yum-yinstallnet-snmp-devel
configure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution
Fix:
yum-yinstalllibxslt-devel