Skip to content

Instantly share code, notes, and snippets.

@vogon101
Last active May 28, 2016 15:15
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 vogon101/72ae37cdcfdf89ba185aaff35dc0c9a0 to your computer and use it in GitHub Desktop.
Save vogon101/72ae37cdcfdf89ba185aaff35dc0c9a0 to your computer and use it in GitHub Desktop.
Compiles bitcoin from source
#!/bin/bash
# Download the source
mkdir -p src && cd src
git clone https://github.com/bitcoin/bitcoin.git
git checkout v0.12.1
# Install the required packages
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqrencode-dev
# Compile Bitcoin
./autogen.sh
./configure
make
sudo make install # optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment