Linux编译安装shadowsocks-libev

ssr-libev的最后一版本在的deepin下gcc6.4版本下无法编译成功,于是尝试在deepin下编译ss-libev,也并不是一次性成功编译,需要编译前置依赖包,这里简单记录下编译ss-libev的笔记

安装依赖包

sudo apt install libev-dev

编译安装libsodium

wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.13.tar.gz
tar zxvf libsodium-1.0.13.tar.gz
./configure --prefix=/usr/local/libsodium
sudo make install

编译安装mbedtls

wget http://dl.teddysun.com/files/mbedtls-2.6.0-gpl.tgz
tar zxvf mbedtls-2.6.0-gpl.tgz
cd mbedtls-2.6.0
make SHARED=1 CFLAGS=-fPIC
sudo make DESTDIR=/usr/local/mbeddtls install

编译ss-libev

wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.1.0/shadowsocks-libev-3.1.0.tar.gz
tar zxvf shadowsocks-libev-3.1.0.tar.gz 
./configure --prefix=/usr/local/shadowsocks  --with-sodium=/usr/local/libsodium --with-mbedtls=/usr/local/mbeddtls --disable-documentation
make
sudo make install

发表评论

电子邮件地址不会被公开。 必填项已用*标注