【centos】PHP编译时有许多依赖,如果当前系统没有安装就会报错

    1. yum install libxml2-devel -y
    2. configure: error: xml2-config not found. Please check your libxml2 installation.
    1. configure: error: Cannot find OpenSSL's <evp.h>
    2. yum install openssl-devel -y
    1. checking for PCRE headers location... configure: error: Could not find pcre.h in /usr
    2. yum install pcre-devel -y
    1. configure: error: Please reinstall the BZip2 distribution
    2. yum install bzip2-devel -y
    1. configure: error: Please reinstall the libcurl distribution -
    2. easy.h should be in <curl-dir>/include/curl/
    3. yum install libcurl-devel -y
    1. configure: error: DBA: Could not find necessary header file(s).
    2. yum install db4-devel -y
    1. configure: error: Cannot find enchant
    2. yum install enchant-devel -y
    1. configure: error: jpeglib.h not found.
    2. yum install libjpeg-devel -y
    1. configure: error: png.h not found.
    2. yum install libpng-devel -y
    1. configure: error: xpm.h not found.
    2. yum install libXpm-devel -y
    1. configure: error: freetype-config not found.
    2. yum install freetype-devel -y
    1. configure: error: Unable to locate gmp.h
    2. yum install gmp-devel -y
    1. configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
    2. yum install libc-client-devel -y
    1. configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.
    2. yum install libicu-devel -y
    1. checking how to run the C++ preprocessor... /lib/cpp
    2. configure: error: in `/root/php-5.5.38':
    3. configure: error: C++ preprocessor "/lib/cpp" fails sanity check
    4. See `config.log' for more details
    5. yum install gcc-c++ -y
    1. configure: error: Cannot find ldap.h
    2. yum install openldap-devel -y
    1. checking for specified location of the MySQL UNIX socket... no
    2. configure: error: Cannot find MySQL header files under /usr.
    3. Note that the MySQL client library is not bundled anymore!
    4. yum install mysql-devel
    1. checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
    2. yum install unixODBC-devel -y
    1. checking for pg_config... not found
    2. configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
    3. yum install postgresql-devel
    1. configure: error: Please reinstall the sqlite distribution from http://www.sqlite.org
    2. yum install sqlite-devel
    1. configure: error: Cannot find pspell
    2. yum install aspell-devel
    1. configure: error: Please reinstall libedit - I cannot find readline.h
    2. yum install libedit-devel -y
    1. configure: error: Can not find recode.h anywhere under /usr /usr/local /usr /opt.
    2. yum install recode-devel -y
    1. configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.
    2. yum install net-snmp-devel
    1. configure: error: Cannot find libtidy
    2. yum install libtidy-devel -y
    1. configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
    2. yum install libxslt-devel -y