宝塔面板CentOS7 安装php8.1报错:error:BROTIL libs and/or directories were not found where specified解决方案


CentOS7 下编译安装PHP8.1报错,关键字:
error:BROTIL libs and/or directories were not  found where specified
错误原因,缺少依赖,
brotli brotli-devel

解决方案:
1、下载epel安装源:
wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/

2、安装epel源
rpm -Uvh epel-release*rpm

3、安装brotli brotli-devel依赖
yum -y install brotli brotli-devel

posted @ 2026-03-06 13:32  可有仙子迎风立  阅读(2)  评论(0)    收藏  举报