checking for libzip... not found
configure: error: Please reinstall the libzip distribution
编译zlib时提示 configure: error: Please reinstall the libzip
distributio 或 configure: error: system libzip must be upgraded to
version >= 0.11。使用Yum最新版只到0.10,不足以达到要求。
一、先删除libzip
yum remove libzip -y
SSH执行以上命令,先删除libzip 和 libzip-devel
二、下载安装并手动编译
wget https://libzip.org/download/libzip-1.5.2.tar.gz
tar -zxvf libzip-1.5.2.tar.gz
cd libzip-1.5.2
./configure
make && make install
三、(经测试,最新版的要用这种方法安装)另外最新版本请参考官网:https://nih.at/libzip/ 1.5.0的libzip需要cmake
wget https://libzip.org/download/libzip-1.5.0.tar.gz
tar -zxvf libzip-*
cd libzip*
mkdir build && cd build && cmake .. && make && make install
如果提示cmake: command not found,需要先yum install cmake或手动编译更高版本。
网友评论