• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

PHP编译安装时常见错误解决办法_php实例

php 搞代码 3年前 (2022-01-25) 15次浏览 已收录 0个评论

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

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

<br />yum -y install libxslt-devel<br />

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

<br />yum -y install net-snmp-devel<br />

configure: error: Please reinstall readline – I cannot find readline.h

<br />yum -y install readline-devel<br />

configure: error: Cannot find pspell

<br />yum -y install aspell-devel<br />

checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!

<br />yum -y install unixODBC-devel<br />

configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.

<br />yum -y install libicu-devel<br />

configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.

<br />yum -y install libc-client-devel<br />

configure: error: freetype.h not found.

<br />yum -y install freetype-devel<br />

configure: error: xpm.h not found.

<br />yum -y install libXpm-devel<br />

configure: error: png.h not found.

<br />yum -y install libpng-devel<br />

configure: error: vpx_codec.h not found.

<br />yum -y install libvpx-devel<br />

configure: error: Cannot find enchant

<br />yum -y install enchant-devel<br />

configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/

<br />yum -y install libcurl-devel<br />

LAOGAO added 20140907:

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

<br />wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz<br />tar zxf libmcrypt-2.5.7.tar.gz<br />cd libmcrypt-2.5.7<br />./configure<br />make && make install<br />

added 20141003:

Cannot find imap

<br />ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so<br />

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing.

<br />yum -y install libc-client-devel<br />

Cannot find ldap.h

<br />yum -y install openldap<br />yum -y install openldap-devel<br />

configure: error: Cannot find ldap libraries in /usr/lib

<br /><strong>cp -frp /usr/lib64/libldap* /usr/lib/</strong><br />

configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

<br />yum -y install postgresql-devel<br />

configure: error: Please reinstall the lib curl distribution

<br />yum -y install curl-devel<br />

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

<br />yum -y install net-snmp-devel<br />

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

<br />yum -y install libxslt-devel<br />

checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution

Fix:

<br />yum -y install bzip2-devel<br />

checking for cURL support… yes checking if we should use cURL for url streams… no checking for cURL in defaul本文来源gaodai$ma#com搞$$代**码)网8搞代gaodaima码t path… not found configure: error: Please reinstall the libcurl distribution – easy.h should be in/include/curl/

Fix:

<br />yum -y install curl-devel<br />

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).

Fix:

<br />yum -y install db4-devel<br />

checking for fabsf… yes checking for floorf… yes configure: error: jpeglib.h not found.

Fix:

<br />yum -y install libjpeg-devel<br />

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

Fix:

<br />yum -y install libpng-devel<br />

checking for png_write_image in -lpng… yes If configure fails try –with-xpm-dir=

configure: error: freetype.h not found.
Fix:

<br />Reconfigure your PHP with the following option. --with-xpm-dir=/usr<br />

checking for png_write_image in -lpng… yes configure: error: libXpm.(a|so) not found.

Fix:

<br />yum -y install libXpm-devel<br />

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

Fix:

<br />yum -y install gmp-devel<br />

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.

Fix:

<br />yum -y install libc-client-devel<br />

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

Fix:

<br />yum -y install openldap-devel<br />

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:

<br />yum -y install unixODBC-devel<br />

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:

<br />yum -y install postgresql-devel<br />

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

Fix:

<br />yum -y install sqlite-devel<br />

checking for utsname.domainname… yes checking for PSPELL support… yes configure: error: Cannot find pspell

Fix:

<br />yum -y install aspell-devel<br />

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:

<br />yum -y install net-snmp-devel<br />

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:

<br />yum -y install libxslt-devel<br />

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

Fix:

<br />yum -y install libxml2-devel<br />

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

Fix:

<br />yum -y install pcre-devel<br />

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

Fix:

<br />yum -y install mysql-devel<br />

checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!

Fix:

<br />yum -y install unixODBC-devel<br />

checking for pg_config… not found configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Fix:

<br />yum -y install postgresql-devel<br />

configure: error: Cannot find pspell

Fix:

<br />yum -y install pspell-devel<br />

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

Fix:

<br />yum -y install net-snmp-devel<br />

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

Fix:

<br />yum -y install libxslt-devel<br />

搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:PHP编译安装时常见错误解决办法_php实例

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址