php编译报错及解决办法

简介:
+关注继续查看

使用阿里云服务器编译php5.6时,产生的报错及解决办法
以下报错及解决办法在Centos6.9、Centos7.4系统,其他系统及版本请自测

报错一:
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
解决办法:
yum install gcc

报错二:
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法:
yum install libxml2-devel libxml2

报错三:
configure: error: Cannot find OpenSSL's <evp.h>
解决办法:
yum install openssl openssl-devel

报错四:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决办法:
yum install curl curl-devel

报错五:
configure: error: jpeglib.h not found.
解决办法:
yum install libjpeg-devel

报错六:
configure: error: png.h not found.
解决办法:
yum install libpng-devel

报错七:
configure: error: freetype-config not found.
解决办法:
yum install freetype-devel

报错八:
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
解决办法:
yum install icu libicu libicu-devel

报错九:
configure: error: in /usr/local/src/php-5.6.35':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See config.log' for more details
解决办法:
yum install gcc-c++

报错十:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
yum install libmcrypt libmcrypt-devel

报错十一:
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
解决办法:
yum install libxslt libxslt-devel

报错十二:
configure: error: Cannot find ldap.h
解决办法:
yum install openldap openldap-devel

报错十三:
configure: error: Cannot find ldap libraries in /usr/lib.
解决办法:
cp -frp /usr/lib64/libldap* /usr/lib/

报错十四:
configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation
解决办法:
yum install net-snmp-devel

报错十五:
configure: error: Unable to locate gmp.h
解决办法:
yum install gmp-devel

目录
相关文章
|
10月前
|
安全 PHP Windows
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
|
12月前
|
关系型数据库 MySQL PHP
PHP连接MySQL 8.0报错的解决办法
PHP连接MySQL 8.0报错的解决办法
263 0
|
关系型数据库 MySQL PHP
PHP连接MySQL 8.0报错的解决办法
PHP连接MySQL 8.0报错的解决办法
|
Shell PHP
安装Appnode面板使用php命令时bash: php :command not found问题所在及解决办法
安装Appnode面板使用php命令时bash: php :command not found问题所在及解决办法
|
PHP API 网络安全
php中curl返回false的解决办法
本文介绍一下自己在使用curl中遇到的问题解决办法。希望可以帮助到大家。 原文地址:代码汇个人博客 http://www.codehui.net/info/37.html 首先来看一个封装的curl函数 function request_post($url = '', $param = '').
2317 0
|
PHP Apache Linux
云服务器更换PHP版本升级的问题,升级PHP后,网站打不开解决办法
升级PHP版本后网站打不开解决办法,切换PHP版本后网站打不开解决办法。
3629 0
|
Web App开发 关系型数据库 MySQL
相关产品
云迁移中心
推荐文章
更多