linux(centos5.5)下编译php时的一些典型错误及解决办法。
.转载
configure: error: xml2-config not found. Please check your libxml2 installation.
Java代码
- yum install libxml2-devel
复制代码 configure: error: Cannot find OpenSSL’s
Java代码
- yum install openssl-devel
复制代码 configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
Java代码configure: error: libjpeg.(a|so) not found
Java代码
- yum install libjpeg-devel
复制代码 configure: error: libpng.(a|so) not found.
Java代码configure: error: libXpm.(a|so) not found.
Java代码configure: error: freetype.h not found.
Java代码
- yum install freetype-devel
复制代码 configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Java代码
- yum install libc-client-devel
复制代码 configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Java代码
- yum install libmcrypt-devel
复制代码 configure: error: Please reinstall libmhash – I cannot find mhash.h
Java代码configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Java代码configure: error: Please reinstall ming distribution. libming.(a|so) not found
- temp remove the config for ‘–with-ming=/opt/ming/’
configure: error: Cannot find pspell
Java代码configure: error: cannot find mm library
Download from http://www.ossp.org/pkg/lib/mm/
Java代码
- wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
- Extract it: tar -zxvf mm-1.4.2.tar.gz
- ./configure
- make
- make install
复制代码 configure: error: Cannot find libtidy
Java代码
- yum install libtidy-devel
- yum install libtidy
- change path at configure: ‘–with-tidy=/usr’
复制代码 configure: error: not found. Please reinstall the expat distribution.
Java代码configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Java代码
- yum install libxslt-devel
复制代码 *Tips: To uninstall, just enter:
Java代码
- yum remove {package-name}
复制代码 Finally the compilation of php end with “Thank you for using PHP.” |