Skip to content

Instantly share code, notes, and snippets.

@alexbosworth
Last active October 8, 2020 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbosworth/cfbe659e94e6dde3975043113dc6bfed to your computer and use it in GitHub Desktop.
Save alexbosworth/cfbe659e94e6dde3975043113dc6bfed to your computer and use it in GitHub Desktop.

Installing Bitcoin from Source with APT

# Install build tools
sudo apt install git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev

# Clone the latest release
git clone -b v0.20.1 https://github.com/bitcoin/bitcoin.git

# Enter the cloned repo dir
cd bitcoin/

# Configure and install with disabled GUI and wallet.
./autogen.sh 
./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768" --enable-cxx --with-zmq --without-gui --disable-shared --with-pic --disable-tests --disable-bench --enable-upnp-default --disable-wallet

# This may take a while
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment