首先下载libzip
# wget https://libzip.org/download/libzip-1.5.2.tar.gz
其次需要安装cmake3
# yum install cmake3 -y
# ln -s /usr/bin/cmake3 /usr/bin/cmake
解压并开始安装
# tar zxvf libzip-1.5.2.tar.gz(注意自行补全正确路径)
# cd libzip-1.5.2
分步安装
# mkdir build && cd build
# cmake ..
# make
# make install
或者一条命令安装
# mkdir build && cd build && cmake .. && make && make install