无脑复制运行就行了。

抄袭自https://doub.io/ss-jc51/

yum -y groupinstall "Development Tools"
yum install unzip autoconf automake libtool -y
wget --no-check-certificate -O "libsodium-master.zip" https://github.com/jedisct1/libsodium/archive/master.zip
unzip libsodium-master.zip && cd libsodium-master
./autogen.sh && ./configure --disable-maintainer-mode && make -j2 && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
cd .. && rm -rf libsodium-master.zip && rm -rf libsodium-master

如果提示autoconf需要2.6以上的版本

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar vzxf autoconf-2.69.tar.gz
cd autoconf-*
./configure --prefix=/usr/local/autoconf
make
make install
export PATH=$PATH:/usr/local/autoconf/bin
autoconf -V