- 测试环境:CentOS7.6
1、安装编译环境
~$ sudo yum install epel-release git -y
~$ sudo yum install gcc gettext autoconf libtool automake make
~$ sudo yum install pcre-devel asciidoc xmlto c-ares-devel libev-devel
~$ sudo yum install libsodium-devel mbedtls-devel openssl-devel -y
~$ sudo yum install -y rpm-build
2、下载源代码
~$ git clone https://github.com/shadowsocks/shadowsocks-libev.git
3、编译
~$ cd shadowsocks-libev/rpm
~$ ./genrpm.sh -b
4、安装RPM软件
~$ cd RPMS/x86_64
~$ sudo rpm -i shadowsocks-libev-*.rpm
5、参考链接
注意: 不要以root用户来编译,请新建普通用户编译。