1、configure: error: Please reinstall the libzip distribution
解决方法一,安装1.2.0版本的libzip:
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
2、提示CMAKE版本太低
解决方法:升级cmake
cd /opt
wget https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.tar.gz
yum remove cmake
cd /opt
tar zxvf cmake-3.14.0-Linux-x86_64.tar.gz
export CMAKE_HOME=/opt/cmake-3.14.0-Linux-x86_64
export PATH=$PATH:$CMAKE_HOME/bin
source /etc/profile
cmake -version
3、configure: error: off_t undefined; check your library configuration
# 解决方法
# 添加搜索路径到配置文件
echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
# 更新配置
ldconfig -v
4、/usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire
cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h