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

目录
相关文章
|
2月前
|
应用服务中间件 Shell PHP
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
|
2月前
|
缓存 PHP C语言
宝塔PHP8.1安装fileinfo拓展失败解决办法
在宝塔面板安装PHP8.1后,fileinfo扩展安装失败,手动尝试也报错。通过分析错误信息,在Makefile中修改CFLAGS添加`-std=c99`,并执行`make clean`清除缓存后,重新编译安装成功。最后在php.ini中启用fileinfo扩展并重启PHP服务。注意需调整CFLAGS为`-std=c99 -g`,去掉`-O2`。
165 0
|
4月前
|
PHP
PHP——oneinstack重新安装PHP的时候报错
PHP——oneinstack重新安装PHP的时候报错
74 4
|
4月前
|
PHP
PHP——安装ThinkPHP框架报错
PHP——安装ThinkPHP框架报错
50 0
|
6月前
|
PHP
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
253 1
|
6月前
|
Ubuntu PHP
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
108 1
|
6月前
|
PHP 数据库
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
49 0
|
7月前
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
161 0
|
7月前
|
Java 中间件 Serverless
Serverless 应用引擎操作报错合集之在阿里函数计算中,云函数怎么一直报错Function instance exited unexpectedly(code 1, message:operation not permitted) with start command 'php server.php '.如何解决
Serverless 应用引擎(SAE)是阿里云提供的Serverless PaaS平台,支持Spring Cloud、Dubbo、HSF等主流微服务框架,简化应用的部署、运维和弹性伸缩。在使用SAE过程中,可能会遇到各种操作报错。以下是一些常见的报错情况及其可能的原因和解决方法。
172 2