linux编译安装--PHP错误代码整理

本文整理了在Linux系统中编译安装PHP过程中遇到的一些错误,包括xml2-config缺失、OpenSSL头文件找不到、BZip2安装问题、libcurl库问题、jpeglib.h和png.h缺失、freetype-config未找到、gmp.h缺失、libmcrypt及libmcrypt-devel未安装、readline.h找不到以及libxslt配置问题。并提供了相应的解决办法。
摘要由CSDN通过智能技术生成

configure error:

1.configure: error: xml2-config not found. Please check your libxml2 installation.

解决:

1

<span style="color: #ff0000"># yum install libxml2 libxml2-devel</span>

 

2.configure: error: Cannot find OpenSSL's <evp.h>

解决:

1

<span style="color: #ff0000"># yum install openssl openssl-devel</span>

 

3.configure: error: Please reinstall the BZip2 distribution

解决:

1

<span style="color: #ff0000"># yum install bzip2 bzip2-devel</span>

 

4.configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/

解决:

1

<span style="color: #ff0000"># yum install libcurl libcurl-devel</span>

 

5.If configure fails try --with-webp-dir=<DIR> configure: error: jpeglib.h not found.

 

解决:

1

<span style="color: #ff0000"># yum install libjpeg libjpeg-dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值