Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common errors in php compilation and installation and their solutions

2025-02-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "common errors and solutions in php compilation and installation". In daily operation, I believe many people have doubts about common errors and solutions in php compilation and installation. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "common errors and solutions in php compilation and installation". Next, please follow the editor to study!

Some of the following error messages are sometimes encountered when CentOS compiles PHP5, which can basically be solved by installing the corresponding libraries in yum. Here are some specific solutions:

The code is as follows:

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

Solution: yum install bzip2-devel

The code is as follows:

Checking for cURL support... Yes checking if we should use cURL for url streams... No checking for cURL in default path... Not found configure: error: Please reinstall the libcurl distribution-easy.h should be in/include/curl/

Solution: yum install curl-devel

The code is as follows:

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: Could not find necessary header file (s).

Solution: yum install db4-devel

The code is as follows:

Checking for fabsf... Yes checking for floorf... Yes configure: error: jpeglib.h not found.

Solution: yum install libjpeg-devel

The code is as follows:

Checking for fabsf... Yes checking for floorf... Yes checking for jpeg_read_header in-ljpeg... Yes configure: error: png.h not found.

Solution: yum install libpng-devel

The code is as follows:

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

Configure: error: freetype.h not found.

Solution: Reconfigure your PHP with the following option. -- with-xpm-dir=/usr

The code is as follows:

Checking for png_write_image in-lpng... Yes configure: error: libXpm. (a | so) not found.

Solution: yum install libXpm-devel

The code is as follows:

Checking for bind_textdomain_codeset in-lc... Yes checking for GNU MP support... Yes configure: error: Unable to locate gmp.h

Solution: yum install gmp-devel

The code is as follows:

Checking for utf8_mime2text signature... New checking for U8T_DECOMPOSE... Configure: error: utf8_mime2text () has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

Solution: yum install libc-client-devel

The code is as follows:

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

Solution: yum install openldap-devel

The code is as follows:

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

The code is as follows:

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

Solution: yum install postgresql-devel

The code is as follows:

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 reinstall the sqlite3 distribution

Solution: yum install sqlite-devel

The code is as follows:

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

Solution: yum install aspell-devel

The code is as follows:

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.

Solution: yum install net-snmp-devel

The code is as follows:

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

Solution: yum install libxslt-devel

The code is as follows:

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

Solution: yum install libxml2-devel

The code is as follows:

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

Solution: yum install pcre-devel

The code is as follows:

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

Solution: yum install mysql-devel

The code is as follows:

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

Solution: yum install unixODBC-devel

The code is as follows:

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

Fix:yum install postgresql-devel

The code is as follows:

Configure: error: Cannot find pspell

Solution: yum install pspell-devel

The code is as follows:

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

Solution: yum install net-snmp-devel

The code is as follows:

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

Solution: yum install libxslt-devel

At this point, the study of "common errors and solutions in php compilation and installation" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report