Ubuntu18.04 配置php7.3.0报错解决

本文详细记录了在Ubuntu18.04系统中配置PHP7.3.0过程中遇到的多个常见错误,包括libxml2、OpenSSL、cURL、jpeglib、png、freetype、libzip等组件缺失或不兼容的问题,并提供了具体的解决步骤,如使用apt命令安装相应开发包或从源码编译安装。

**

Ubuntu18.04 配置php7.3.0报错

**
错误:checking for pkg-config… no
configure: error: libxml2 not found. Please check your libxml2 installation.
@解决: apt install pkg-config

++++++++++++++++++++++++++++++++++++++++++
错误:configure: error: libxml2 not found.
@解决: apt install libxml2-dev

++++++++++++++++++++++++++++++++++++++++++
错误:configure: error: Cannot find OpenSSL’s <evp.h>
@解决: apt 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
@解决: wget https://curl.haxx.se/download/curl-7.63.0.tar.gz 编译安装

++++++++++++++++++++++++++++++++++++++++++
错误:configure: error: jpeglib.h not found.
@解决: apt install jpeglib-dev

+++++++++++++++++++++++++++++++++++++
错误:configure: error: png.h not found.
@解决: apt install pnglib-dev

++++++++++++++++++++++++++++++++++++
错误:configure: error: freetype-config not found.
@解决: apt install libfreetype6-dev

++++++++++++++++
错误:checking for libzip… not found
configure: error: Please reinstall the libzip distribution
@解决: wget https://libzip.org/download/libzip-1.5.1.tar.gz

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值