Created
June 15, 2018 17:20
-
-
Save davidtavarez/6a95dfd99a710aea69dcda41a3a1f8dc to your computer and use it in GitHub Desktop.
Building static Tor from source
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
#!/bin/bash | |
# curl -fsSL "https://zlib.net/zlib-1.2.11.tar.gz" | tar zxvf - | |
# curl -fsSL "https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz" | tar zxvf - | |
# curl -fsSL "https://www.openssl.org/source/openssl-1.0.2m.tar.gz" | tar zxvf - | |
# curl -fsSL "https://www.torproject.org/dist/tor-0.3.1.8.tar.gz" | tar zxvf - | |
sudo apt-get update | |
sudo apt-get install -y build-essential curl | |
cd zlib | |
./configure --prefix=$PWD/install | |
make -j$(nproc) | |
make install | |
cd .. | |
cd libevent | |
./configure --prefix=$PWD/install \ | |
--disable-shared \ | |
--enable-static \ | |
--with-pic | |
make -j$(nproc) | |
make install | |
cd .. | |
cd openssl | |
./config --prefix=$PWD/install no-shared no-dso | |
make -j$(nproc) | |
make install | |
cd .. | |
cd tor | |
./configure --prefix=$PWD/install \ | |
--enable-static-tor \ | |
--with-libevent-dir=$PWD/../libevent/install \ | |
--with-openssl-dir=$PWD/../openssl/install \ | |
--with-zlib-dir=$PWD/../zlib/install | |
make -j$(nproc) | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment