Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.