CentOS 7 安装 libzip 1.5.2

CentOS 7 源码安装 libzip 1.5.2,解决 error: Please reinstall the libzip distributio 或 error: system libzip must be upgraded to version >= 0.11 错误。

1、准备编译环境
yum install openssl-devel bzip2 bzip2-devel
2、下载源码,并解压
wget https://libzip.org/download/libzip-1.5.2.tar.gz
tar -zxf libzip-1.5.2.tar.gz
cd libzip-1.5.2
备用下载地址:https://down.24kplus.com/linux/libzip-1.5.2.tar.gz
3、编译安装
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make
sudo make install
如果提示 cmake: command not found,需要先安装 cmake

原创文章,作者:星辰,如若转载,请注明出处:http://www.z88j.com/11.html

(10)
打赏 微信扫一扫 微信扫一扫
上一篇 2020年6月8日 下午4:11
下一篇 2020年6月22日 下午5:34

相关推荐

发表回复

登录后才能评论

Warning: error_log(/www/wwwroot/www.z88j.com/wp-content/plugins/spider-analyser/#log/log-1818.txt): failed to open stream: No such file or directory in /www/wwwroot/www.z88j.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900