CentOS下编译php时的一些典型错误及解决办法

yum安装必要工具(能解决比编译遇到到基本问题):
  1. yum -y install gcc gcc-c++  make cmake automake autoconf kernel-devel ncurses-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel  pcre-devel libtool-libs freetype-devel gd zlib-devel file bison patch mlocate flex diffutils   readline-devel glibc-devel glib2-devel bzip2-devel gettext-devel libcap-devel libmcrypt-devel openldap openldap-devellibxslt-devel

configure: error: xml2-config not found. Please check your libxml2 installation.
  1. yum install libxml2-devel
 
configure: error: Cannot find OpenSSL’s
  1. yum install openssl-devel
 
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
  1. yum install curl-devel
 
configure: error: libjpeg.(a|so) not found
  1. yum install libjpeg-devel
 
configure: error: libpng.(a|so) not found.
  1. yum install libpng-devel
configure: error: libXpm.(a|so) not found. 
  1. yum install libXpm-devel
 
configure: error: freetype.h not found.
  1. 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.
  1. yum install libc-client-devel
 
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
  1. yum install libmcrypt-devel
 
configure: error: Please reinstall libmhash – I cannot find mhash.h
  1. yum install mhash-devel
 
configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore!
  1. yum install mysql-devel
 
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
  1. yum install pspell-devel
 
configure: error: cannot find mm libraryDownload from http://www.ossp.org/pkg/lib/mm/
 
  1. wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
  2. tar -zxvf mm-1.4.2.tar.gz
  3. ./configure
  4. make
  5. make install

configure: error: Cannot find libtidy
 
  1. yum install libtidy-devel
  2. yum install libtidy

change path at configure: ‘–with-tidy=/usr’configure: error: not found. Please reinstall the expat distribution.
  1. yum install expat-devel
 
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
 
  1. yum install libxslt-devel
*Tips: To uninstall, just enter:yum remove {package-name}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值