欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-11-27 11:26:34
this article is post on https://coderwall.com/p/ggmpfa configure: error: xslt-config...

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

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

复制代码 代码如下:

yum -y install libxslt-devel

configure: error: could not find net-snmp-config binary. please check your net-snmp installation.
复制代码 代码如下:

yum -y install net-snmp-devel

configure: error: please reinstall readline - i cannot find readline.h
复制代码 代码如下:

yum -y install readline-devel

configure: error: cannot find pspell
复制代码 代码如下:

yum -y install aspell-devel

checking for unixodbc support... configure: error: odbc header file '/usr/include/sqlext.h' not found!
复制代码 代码如下:

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.
复制代码 代码如下:

yum -y install libicu-devel

configure: error: utf8mime2text() has new signature, but u8tcanonical is missing. this should not happen. check config.log for additional information.
复制代码 代码如下:

yum -y install libc-client-devel

configure: error: freetype.h not found.
复制代码 代码如下:

yum -y install freetype-devel

configure: error: xpm.h not found.
复制代码 代码如下:

yum -y install libxpm-devel

configure: error: png.h not found.
复制代码 代码如下:

yum -y install libpng-devel

configure: error: vpx_codec.h not found.
复制代码 代码如下:

yum -y install libvpx-devel

configure: error: cannot find enchant
复制代码 代码如下:

yum -y install enchant-devel

configure: error: please reinstall the libcurl distribution - easy.h should be in /include/curl/
复制代码 代码如下:

yum -y install libcurl-devel

laogao added 20140907:

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

复制代码 代码如下:

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

复制代码 代码如下:

ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so

configure: error: utf8_mime2text() has new signature, but u8t_canonical is missing.
复制代码 代码如下:

yum -y install libc-client-devel

cannot find ldap.h
复制代码 代码如下:

yum -y install openldap
yum -y install openldap-devel

configure: error: cannot find ldap libraries in /usr/lib
复制代码 代码如下:

cp -frp /usr/lib64/libldap* /usr/lib/

configure: error: cannot find libpq-fe.h. please specify correct postgresql installation path
复制代码 代码如下:

yum -y install postgresql-devel

configure: error: please reinstall the lib curl distribution
复制代码 代码如下:

yum -y install curl-devel

configure: error: could not find net-snmp-config binary. please check your net-snmp installation.
复制代码 代码如下:

yum -y install net-snmp-devel

configure: error: xslt-config not found. please reinstall the libxslt >= 1.1.0 distribution
复制代码 代码如下:

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:

复制代码 代码如下:

yum -y install bzip2-devel

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/

fix:

复制代码 代码如下:

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

fix:

复制代码 代码如下:

yum -y install db4-devel

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

fix:

复制代码 代码如下:

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:

复制代码 代码如下:

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:

复制代码 代码如下:

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 -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:

复制代码 代码如下:

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 should not happen. check config.log for additional information.

fix:

复制代码 代码如下:

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:

复制代码 代码如下:

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:

复制代码 代码如下:

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:

复制代码 代码如下:

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

fix:

复制代码 代码如下:

yum -y install sqlite-devel

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

fix:

复制代码 代码如下:

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:

复制代码 代码如下:

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:

复制代码 代码如下:

yum -y install libxslt-devel

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

fix:

复制代码 代码如下:

yum -y install libxml2-devel

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

fix:

复制代码 代码如下:

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:

复制代码 代码如下:

yum -y install mysql-devel

checking for unixodbc support… configure: error: odbc header file ‘/usr/include/sqlext.h' not found!

fix:

复制代码 代码如下:

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:

复制代码 代码如下:

yum -y install postgresql-devel

configure: error: cannot find pspell

fix:

复制代码 代码如下:

yum -y install pspell-devel

configure: error: could not find net-snmp-config binary. please check your net-snmp installation.

fix:

复制代码 代码如下:

yum -y install net-snmp-devel

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

fix:

复制代码 代码如下:

yum -y install libxslt-devel