Common error solutions for PHP compilation and installation in CentOS

Source: Internet
Author: User
Tags gmp mcrypt snmp xslt openldap

Common error solutions for PHP compilation and installation in CentOS

Reprinted from: http://www.bkjia.com/PHPjc/1008013.html


This article is post on https://coderwall.com/p/ggmpfa

Configure: error: xslt-config not found. Please reinstall the libxslt> = 1.1.0 distribution
Copy codeThe Code is as follows:
Yum-y install libxslt-devel

Configure: error: cocould not find net-snmp-config binary. Please check your net-snmp installation.
Copy codeThe Code is as follows:
Yum-y install net-snmp-devel

Configure: error: Please reinstall readline-I cannot find readline. h
Copy codeThe Code is as follows:
Yum-y install readline-devel

Configure: error: Cannot find pspell
Copy codeThe Code is as follows:
Yum-y install aspell-devel

Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext. H' not found!
Copy codeThe Code is as follows:
Yum-y install unixODBC-devel

Configure: error: Unable to detect ICU prefix or/usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.
Copy codeThe Code is as follows:
Yum-y install libicu-devel

Configure: error: utf8mime2text () has new signature, but U8TCANONICAL is missing. This shoshould not happen. Check config. log for additional information.
Copy codeThe Code is as follows:
Yum-y install libc-client-devel

Configure: error: freetype. h not found.
Copy codeThe Code is as follows:
Yum-y install freetype-devel

Configure: error: xpm. h not found.
Copy codeThe Code is as follows:
Yum-y install libXpm-devel

Configure: error: png. h not found.
Copy codeThe Code is as follows:
Yum-y install libpng-devel

Configure: error: vpx_codec.h not found.
Copy codeThe Code is as follows:
Yum-y install libvpx-devel

Configure: error: Cannot find enchant
Copy codeThe Code is as follows:
Yum-y install enchant-devel

Configure: error: Please reinstall the libcurl distribution-easy. h shoshould be in/include/curl/
Copy codeThe Code is as follows:
Yum-y install libcurl-devel

LAOGAO added 20140907:

Configure: error: mcrypt. h not found. Please reinstall libmcrypt.
Copy codeThe Code is as follows:
Wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
Tar zxf libmcrypt-2.5.7.tar.gz
Cd libmcrypt-2.5.7
./Configure
Make & make install

Added 20141003:

Cannot find imap
Copy codeThe Code is as follows:
Ln-s/usr/lib64/libc-client.so/usr/lib/libc-client.so

Configure: error: utf8_mime2text () has new signature, but U8T_CANONICAL is missing.
Copy codeThe Code is as follows:
Yum-y install libc-client-devel

Cannot find ldap. h
Copy codeThe Code is as follows:
Yum-y install openldap
Yum-y install openldap-devel

Configure: error: Cannot find ldap libraries in/usr/lib
Copy codeThe Code is as follows:
Cp-frp/usr/lib64/libldap */usr/lib/

Configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
Copy codeThe Code is as follows:
Yum-y install postgresql-devel

Configure: error: Please reinstall the lib curl distribution
Copy codeThe Code is as follows:
Yum-y install curl-devel

Configure: error: cocould not find net-snmp-config binary. Please check your net-snmp installation.
Copy codeThe Code is as follows:
Yum-y install net-snmp-devel

Configure: error: xslt-config not found. Please reinstall the libxslt> = 1.1.0 distribution
Copy codeThe Code is as follows:
Yum-y install libxslt-devel

Checking for BZip2 support... Yes checking for BZip2 in default path... Not found configure: error: Please reinstall the BZip2 distribution

Fix:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y install db4-devel

Checking for fabsf... Yes checking for floopen-end... Yes configure: error: Invalid Lib. h not found.

Fix:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y install libpng-devel

Checking for png_write_image in-lpng... Yes If configure fails try-with-xpm-dir =

Configure: error: freetype. h not found.
Fix:
Copy codeThe Code is as follows:
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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y install libc-client-devel

Checking for LDAP support... Yes, shared checking for LDAP Cyrus SASL support... Yes configure: error: Cannot find ldap. h

Fix:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y install sqlite-devel

Checking for utsname. domainname... Yes checking for PSPELL support... Yes configure: error: Cannot find pspell

Fix:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y 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:
Copy codeThe Code is as follows:
Yum-y install libxslt-devel

Configure: error: xml2-config not found. Please check your libxml2 installation.

Fix:
Copy codeThe Code is as follows:
Yum-y install libxml2-devel

Checking for PCRE headers location... Configure: error: cocould not find pcre. h in/usr

Fix:
Copy codeThe Code is as follows:
Yum-y install pcre-devel

Configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!

Fix:
Copy codeThe Code is as follows:
Yum-y install mysql-devel

Checking for unixODBC support... Configure: error: ODBC header file '/usr/include/sqlext. H' not found!

Fix:
Copy codeThe Code is as follows:
Yum-y install unixODBC-devel

Checking for pg_config... Not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:
Copy codeThe Code is as follows:
Yum-y install postgresql-devel

Configure: error: Cannot find pspell

Fix:
Copy codeThe Code is as follows:
Yum-y install pspell-devel

Configure: error: cocould not find net-snmp-config binary. Please check your net-snmp installation.

Fix:
Copy codeThe Code is as follows:
Yum-y install net-snmp-devel

Configure: error: xslt-config not found. Please reinstall the libxslt> = 1.1.0 distribution

Fix:
Copy codeThe Code is as follows:
Yum-y install libxslt-devel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.