Solution to CentOS compiling PHP5 errors
When you compile PHP5 in CentOS, you may encounter the following errors. Basically, you can install the corresponding libraries using yum. The following are some specific solutions:
Checking for BZip2 support... Yes checking for BZip2 in default path... Not found configure: error: Please reinstall the BZip2 distribution
Fix:yum install bzip2-devel
Checking for cURL support... Yes checking if we shocould use cURL for url streams... No checking for cURL in default path... Not found configure: error: Please reinstall the libcurl distribution-easy. h shoshould be in/include/curl/
Fix:yum install curl-devel
Checking for curl_multi_strerror in-lcurl... Yes checking for QDBM support... No checking for GDBM support... No checking for NDBM support... No configure: error: DBA: cocould not find necessary header file (s ).
Fix:yum install db4-devel
Checking for fabsf... Yes checking for floopen-end... Yes configure: error: Invalid Lib. h not found.
Fix:yum install libjpeg-devel
Checking for fabsf... Yes checking for floopen-end... Yes checking for pai_read_header in-ljpeg... Yes configure: error: png. h not found.
Fix:yum install libpng-devel
Checking for png_write_image in-lpng... Yes If configure fails try-with-xpm-dir =
Fix: Reconfigure your PHP with the following option.--with-xpm-dir=/usr
Checking for png_write_image in-lpng... Yes configure: error: libXpm. (a | so) not found.
Fix:yum install libXpm-devel
Checking for bind_textdomain_codeset in-lc... Yes checking for gnu mp support... Yes configure: error: Unable to locate gmp. h
Fix:yum install gmp-devel
Checking for utf8_mime2text signature... New checking for U8T_DECOMPOSE... Configure: error: utf8_mime2text () has new signature, but U8T_CANONICAL is missing. This shocould not happen. Check config. log for additional information.
Fix:yum install libc-client-devel
Checking for LDAP support... Yes, shared checking for LDAP Cyrus SASL support... Yes configure: error: Cannot find ldap. h
Fix:yum install openldap-devel
Checking for mysql_set_character_set in-lmysqlclient... Yes checking for mysql_stmt_next_result in-lmysqlclient... No checking for Oracle Database OCI8 support... No checking for unixODBC support... Configure: error: ODBC header file '/usr/include/sqlext. H' not found!
Fix:
yum install unixODBC-devel
Checking for PostgreSQL support for PDO... Yes, shared checking for pg_config... Not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
Fix:yum install postgresql-devel
Checking for sqlite 3 support for PDO... Yes, shared checking for PDO implements des... (Cached)/usr/local/src/php-5.3.7/ext checking for sqlite3 files in default path... Not found configure: error: Please reinstall the sqlite3 distribution
Fix:yum install sqlite-devel
Checking for utsname. domainname... Yes checking for PSPELL support... Yes configure: error: Cannot find pspell
Fix:yum install aspell-devel
Checking whether to enable ucd snmp hack... Yes checking for default_store.h... No
Checking for kstat_read in-lkstat... No checking for snmp_parse_oid in-lsnmp... No checking for init_snmp in-lsnmp... No configure: error: SNMP sanity check failed. Please check config. log for more information.
Fix:yum install net-snmp-devel
Checking whether to enable XMLWriter support... Yes, shared checking for xml2-config path... (Cached)/usr/bin/xml2-config checking whether libxml build works... (Cached) yes checking for XSL support... Yes, shared configure: error: xslt-config not found. Please reinstall the libxslt> = 1.1.0 distribution
Fix:yum install libxslt-devel
Configure: error: xml2-config not found. Please check your libxml2 installation.
Fix:yum install libxml2-devel
Checking for PCRE headers location... Configure: error: cocould not find pcre. h in/usr
Fix:yum install pcre-devel
Configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!
Fix:yum install mysql-devel
Checking for unixODBC support... Configure: error: ODBC header file '/usr/include/sqlext. H' not found!
Fix:yum install unixODBC-devel
Checking for pg_config... Not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
Fix:
yum install postgresql-devel
Configure: error: Cannot find pspell
Fix:yum install pspell-devel
Configure: error: cocould not find net-snmp-config binary. Please check your net-snmp installation.
Fix:yum install net-snmp-devel
Configure: error: xslt-config not found. Please reinstall the libxslt> = 1.1.0 distribution
Fix:yum install libxslt-devel