在centos7系统下,编译一些包时,可能会发生以下类似报错,提示当前libzip包版本过低,导致编译失败
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:
configure: error: system libzip must be upgraded to version >= 0.11
我这里使用wlnmp提供libzip包解决
解决办法:
卸载原有低版本的libzip包
yum remove libzip libzip-devel
|---|--------------------------------| | 1 | yum remove libzip libzip-devel |
添加wlnmp源
rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
|---|---------------------------------------------------------------------------| | 1 | rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm |
安装libzip包,当前wlnmp提供的libzip包版本1.3.2
yum install wlibzip
|---|---------------------| | 1 | yum install wlibzip |