PHP编译时有许多依赖,如果当前系统没有安装就会报错,本文收集了一些常见的报错,以及解决方案供大家参考。
configure: error: xml2-config not found. Please check your libxml2 installation.yum install libxml2-devel -y
configure: error: Cannot find OpenSSL's <evp.h>yum install openssl-devel -y
checking for PCRE headers location... configure: error: Could not find pcre.h in /usryum install pcre-devel -y
configure: error: Please reinstall the BZip2 distributionyum install bzip2-devel -y
configure: error: Please reinstall the libcurl distribution -
   easy.h should be in <curl-dir>/include/curl/yum install libcurl-devel -y
configure: error: DBA: Could not find necessary header file(s).yum install db4-devel -y
configure: error: Cannot find enchantyum install enchant-devel -y
configure: error: jpeglib.h not found.yum install libjpeg-devel -y
configure: error: png.h not found.yum install libpng-devel -y
configure: error: xpm.h not found. yum install libXpm-devel -y
configure: error: freetype-config not found.yum install freetype-devel -y
configure: error: Unable to locate gmp.hyum install gmp-devel -y
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.yum install libc-client-devel -y
configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.yum install libicu-devel -y
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/root/php-5.5.38':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more detailsyum install gcc-c++ -y
configure: error: Cannot find ldap.h yum install openldap-devel -y
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!yum install mysql-devel
checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!yum install unixODBC-devel -y
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation pathyum install postgresql-devel
configure: error: Please reinstall the sqlite distribution from http://www.sqlite.org
yum install sqlite-devel
configure: error: Cannot find pspellyum install aspell-devel
configure: error: Please reinstall libedit - I cannot find readline.hyum install libedit-devel -y
configure: error: Can not find recode.h anywhere under /usr /usr/local /usr /opt.yum install recode-devel -y
configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.yum install net-snmp-devel
configure: error: Cannot find libtidyyum install libtidy-devel -y
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distributionyum install libxslt-devel -y
 
                            
希望技术交流
谢了。