Last active
June 2, 2020 04:14
-
-
Save LeeiFrankJaw/37cc41c2e26c156933fc12d009f752d3 to your computer and use it in GitHub Desktop.
Install trojan from source under Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone 'git@github.com:trojan-gfw/trojan.git' | |
sudo apt install cmake default-libmysqlclient-dev libboost-program-options-dev libboost-system-dev libssl-dev | |
# Oops, the boost version shipped with Ubuntu 18.04 is too old for trojan. | |
wget 'https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2' | |
tar xvf boost_1_72_0.tar.bz2 -C /usr/local/ | |
cd trojan/ | |
git checkout v1.14.1 | |
cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr/local -D BOOST_ROOT:PATH=/usr/local/boost_1_72_0/ . | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment