PHP编译常见错误

1.

configure: error: no acceptable cc found in $PATH


yum install -y gcc

2.

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


yum install libxml2-devel -y

3.

configure: error: Cannot find OpenSSL’s


yum install openssl-devel -y

4.

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


yum install -y libc-client-devel

5.

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation


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

6.

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


yum install -y libcurl-devel

7.

configure: error: Cannot find ldap.h

yum install -y openldap-devel


ln -fs /usr/lib64/libldap.so /usr/lib

8.

configure: error: Please reinstall the BZip2 distribution


yum install -y bzip2-devel

9.

configure: error: jpeglib.h not found.


yum install -y libjpeg-devel

10.

configure: error: png.h not found.


yum install -y libpng-devel

11.

configure: error: freetype.h not found.


yum install -y freetype-devel

12.

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


wget http://my-lnmp-down.googlecode.com/files/libmcrypt-2.5.8.tar.gz
tar zxf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make && make install
cd libltdl/
./configure –enable-ltdl-install
make && make install

13.

checking for C++ compiler default output file name… configure: error: C++ compiler cannot create executables


yum install -y gcc-c++

14.

configure: error: Kerberos libraries not found.
Check the path given to –with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )


yum install -y openssl-devel

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

Related Post