Ubuntu 安装php 7.3遇到的错误

本文解决了在编译PHP过程中遇到的各种配置错误,包括找不到OpenSSL的evp.h文件、cURL版本过低、缺失DBA必要的头文件、libpng未找到、freetype-config未找到及libzip重新安装等问题,提供了具体的apt-get安装命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

这个问题是缺少openssl-devel apt-get install libssl-dev 安装即可

checking for cURL 7.15.5 or greater... configure: error: cURL version 7.15.5 or later is required to compile php with cURL support

这个问题是cURL版本问题卸载重装下curl就好了 

configure: error: DBA: Could not find necessary header file(s).

网上找了半天都说是少了这个包 libdb-dev 我的却不行 安装 libgdbm-dev 这个包才ok

Configure: error: libpng.(also) not found.

apt-get install libjpeg-dev libpng-dev

configure: error: freetype-config not found.

 apt-get -y install libfreetype6-dev

configure: error: Please reinstall the libzip distribution

apt install libzip-dev

 

然后就没错误了, make && make install 完事

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值