问题描述
- 编译zlib时提示:
configure: error: Please reinstall the libzip distributio
或者 configure: error: system libzip must be upgraded to version >= 0.11
- 使用Yum最新版只到0.10,不足以达到要求
解决办法
1、先删除libzip
yum remove libzip -y
2、下载安装并手动编译
wget https://nih.at/libzip/libzip-1.2.0.tar.gz
tar -zxvf libzip-1.2.0.tar.gz
cd libzip-1.2.0
./configure
make && make install
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
或手动编译更高版本。