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

目录
相关文章
|
14天前
|
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过程中,可能会遇到各种操作报错。以下是一些常见的报错情况及其可能的原因和解决方法。
26 2
|
5月前
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
73 0
|
自然语言处理 PHP
PHP的编译过程是怎样的?底层原理是什么?
PHP的编译过程是怎样的?底层原理是什么?
134 0
|
9月前
编译php7常见报错
编译php7常见报错
|
9月前
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
325 0
|
10月前
|
PHP
PHP报错Call to undefined function utf8_decode()的解决方案
PHP报错Call to undefined function utf8_decode()的解决方案
|
12月前
|
SQL 前端开发 JavaScript
[从0开始]PHP+phpstudy留言板项目搭建教程及报错详析
PHP是在服务器端执行的脚本语言,适用于Web开发并可嵌入HTML中。 学习网站:PHP教程 | 菜鸟教程
193 0
|
测试技术 PHP
PHP: PhpStorm单元测试报错:PHPUnit Cannot open file
PHP: PhpStorm单元测试报错:PHPUnit Cannot open file
73 0
|
测试技术 PHP
PHP:laravel自定义Model报错:$table must not be defined/$table must be string
PHP:laravel自定义Model报错:$table must not be defined/$table must be string
103 0
|
PHP
PHP: Laravel报错Target class [App\\service\\AuthService] does not exist
PHP: Laravel报错Target class [App\\service\\AuthService] does not exist
97 0