php7.4:No package 'libzip' found

Qbit 2021-05-12 PM 181℃

错误信息

php7.4:No package 'libzip' found

解决方法一[已验证,可行]

  1. 下载较高版本libzip 1.2
wget https://libzip.org/download/libzip-1.2.0.tar.gz
tar -zxvf libzip-1.2.0.tar.gz
cd libzip-1.2.0
./configure
make && make install
  1. 修改变量
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"

解决方案二【未验证】

rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum —enablerepo=remi install libzip5-devel
标签: php 报错

非特殊说明,本博所有文章均为博主原创。