Debian 8 编译安装 trojan

准备工作

apt -y install build-essential gcc g++ libtool automake python3 curl git

编译安装 OpenSSL

apt remove openssl
wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz
tar -zxvf openssl-1.1.1c.tar.gz
mkdir /usr/local/openssl
cd openssl-1.1.1c/
./config
make
make install
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf.d/openssl-1.1.1.conf
ldconfig -v

编译安装 CMake

wget https://cmake.org/files/v3.14/cmake-3.14.5.tar.gz
tar -zxvf cmake-3.14.5.tar.gz
cd cmake-3.14.5
./bootstrap
make
make install

编译安装 Boost

wget https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz
tar -zxvf boost_1_70_0.tar.gz
cd boost_1_70_0
./bootstrap.sh
./b2
./b2 install
cp -r boost /usr/include

编译安装 trojan

git clone http://XXX/trojan.git
cd trojan
mkdir build
cd build
cmake .. -DENABLE_MYSQL=OFF -DFORCE_TCP_FASTOPEN=ON -DSYSTEMD_SERVICE=AUTO -DENABLE_SSL_KEYLOG=OFF
make
make install
*****
Written by 空鱼 on 06 July 2019
        ト 、.  /|
         \\|::|/|,. -‐‐- 、.,_
        ,>''"´:::::::::::::::::::::::`ヽ.
        /:::/::::::::::/|::::::::::::::::::::::`ヽ.
       ./:::/::::::::::/‐ヘ:::::::ト 、ー-::\`フ
      ,'<:;_/:::::::/ __, \| 、_\::::::::>
     ,.|::::∠;:::::::xーt--,   -tー‐ァ7´| 
     !:::::::rレ∨.  `‐'    `ー' ::八 
  -ト 、__人::::ゝ'ヘ              |:::_;:>
  人::::::::::::;>:::;ハ、     ,   .人:|  
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄