Common error resolution when compiling and installing PHP

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

Common error resolution when compiling and installing PHPThis article are 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:Could 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 a new signature, but U8tcanonical is missing. This should is 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 should 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 the Code code 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 a 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:Could 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 the Code code as follows:
Yum-y Install Bzip2-devel

Checking for Curl support ... yes checking if we should use the Curl for URL streams ... no checking for curl in default path ... not f Ound configure:error:Please Reinstall the Libcurl distribution–easy.h should be in/include/curl/

Fix:
Copy the Code code 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 N DBM support ... no configure:error:DBA:Could not find necessary header file (s).

Fix:
Copy the Code code as follows:
Yum-y Install Db4-devel

Checking for FABSF ... yes checking for Floorf ... yes configure:error:jpeglib.h not found.

Fix:
Copy the Code code as follows:
Yum-y Install Libjpeg-devel

Checking for FABSF ... yes checking for Floorf ... yes checking for Jpeg_read_header in-ljpeg ... yes configure:error:png.h not Found.

Fix:
Copy the Code code 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 the Code code 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 the Code code 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 the Code code as follows:
Yum-y Install Gmp-devel

Checking for Utf8_mime2text signature ... new checking for u8t_decompose ... configure:error:utf8_mime2text () has new Signatur E, but u8t_canonical is missing. This should is not happen. Check Config.log For additional information.

Fix:
Copy the Code code 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 the Code code 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 Checki ng for Oracle Database OCI8 support ... no checking for UnixODBC support ... configure:error:ODBC header file '/usr/include/sq Lext.h ' Not found!

Fix:
Copy the Code code 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 the Code code as follows:
Yum-y Install Postgresql-devel

Checking for SQLite 3 support for PDO ... yes, shared checking for PDO includes ... (cached)/usr/local/src/php-5.3.7/ext checking for sqlite3 files in default path ... not found Configure:error:Please reins Tall the sqlite3 distribution

Fix:
Copy the Code code as follows:
Yum-y Install Sqlite-devel

Checking for utsname.domainname ... yes checking for Pspell support ... yes Configure:error:Cannot find Pspell

Fix:
Copy the Code code 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 conf Igure:error:SNMP sanity check failed. Please check the Config.log for more information.

Fix:
Copy the Code code 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 the Code code as follows:
Yum-y Install Libxslt-devel

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

Fix:
Copy the Code code as follows:
Yum-y Install Libxml2-devel

Checking for PCRE headers location ... configure:error:Could not find pcre.h in/usr

Fix:
Copy the Code code as follows:
Yum-y Install Pcre-devel

Configure:error:Cannot find MySQL header files under Yes. Note that the MySQL client library isn't bundled anymore!

Fix:
Copy the Code code as follows:
Yum-y Install Mysql-devel

Checking for UnixODBC support ... configure:error:ODBC header file '/usr/include/sqlext.h ' not found!

Fix:
Copy the Code code 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 the Code code as follows:
Yum-y Install Postgresql-devel

Configure:error:Cannot Find Pspell

Fix:
Copy the Code code as follows:
Yum-y Install Pspell-devel

Configure:error:Could not find Net-snmp-config binary. Please check your NET-SNMP installation.

Fix:
Copy the Code code as follows:
Yum-y Install Net-snmp-devel

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

Fix:
Copy the Code code as follows:
Yum-y Install Libxslt-devel

Common error resolution when compiling and installing PHP

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.