centos/ubuntu/debian安装libsodium

发表于 2019-06-06   |   分类于 技术教程     阅读:(470)

centos:

yum install epel-release
yum install libsodium
如果想自己编译,那么可以用以下的命令

yum -y groupinstall "Development Tools"
wget https://github.com/jedisct1/libsodium/releases/download/1.0.15/libsodium-1.0.15.tar.gz
tar xf libsodium-1.0.15.tar.gz && cd libsodium-1.0.15
./configure && make -j2 && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig

ubuntu/debian:

apt-get install build-essential
wget https://github.com/jedisct1/libsodium/releases/download/1.0.15/libsodium-1.0.15.tar.gz
tar xf libsodium-1.0.15.tar.gz && cd libsodium-1.0.15
./configure && make -j2 && make install
ldconfig
如果曾经安装过旧版本,亦可重复用以上步骤更新到最新版,仅1.0.4或以上版本支持chacha20-ietf

仅有 1 条评论


  1. Vpsgh

    wget -N --no-check-certificate https://tutu.bid/bash/ssrmu.sh && chmod +x ssrmu.sh && bash ssrmu.sh

    wget --no-check-certificate https://tutu.bid/bash/bbr/tcp.sh && chmod +x tcp.sh && bash tcp.sh

    Vpsgh admin 2019-06-06 18:23回复

发表新评论

© 2019 VPS干货 Powered by Typecho & Theme Quark Google_sitemap baidu_sitemap
友情链接: 简爱博客 小众博客 vps干货 vps优惠码 王阳个人博客 VPS推介 顾建伟个人博客 Dianlin(好基友) 李子博客 主机测评 资源分享 Hello Mango