Skip to content

Instantly share code, notes, and snippets.

@LeeiFrankJaw
Last active June 2, 2020 04:14
Show Gist options
  • Save LeeiFrankJaw/37cc41c2e26c156933fc12d009f752d3 to your computer and use it in GitHub Desktop.
Save LeeiFrankJaw/37cc41c2e26c156933fc12d009f752d3 to your computer and use it in GitHub Desktop.
Install trojan from source under Ubuntu 18.04
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