cd ~/src
tar -zxf v2.28.0.tar.gz
cd mbedtls-2.28.0
make SHARED=1CFLAGS=-fPIC
make DESTDIR=/usr install
3.2 安装 libsodium 1.0.18
1
2
3
4
5
6
7
cd ~/src
tar -zxf libsodium-1.0.18.tar.gz
cd libsodium-1.0.18
./configure --prefix=/usr && make && make install
ldconfig -p
echo'/usr/lib' > /etc/ld.so.conf.d/usr_lib.conf
ldconfig
3.3 安装 shadowsocks-libev
1
2
3
4
5
6
7
cd ~/src/shadowsocks-libev
apt -y install pkg-config
git submodule update --init --recursive
git submodule init && git submodule update
./autogen.sh
./configure --disable-documentation
make && make install