Forked from itoonx/Compile Bitcoin Core on Ubuntu 16.04 LTS
Last active
May 31, 2018 22:33
-
-
Save benfavre/fb33f5e068c788a886dea38fdb31b123 to your computer and use it in GitHub Desktop.
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
# Update & Upgrade the System | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install dependencies there might be more based on your system | |
# However below instructions are for the fresh Ubuntu install/server | |
# Please carefully watch the logs because if something could not be install | |
# You have to make sure it is installed properly by trying the command or that particular | |
# dependency again | |
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler | |
sudo apt-get install libqrencode-dev autoconf openssl libssl-dev libevent-dev | |
sudo apt-get install libminiupnpc-dev | |
sudo apt-get install libssl-dev | |
sudo apt-get install libdb++-dev libleveldb-dev libevent-dev | |
# OPENSSL | |
# ---------------------------- | |
sudo apt-cache madison openssl | |
sudo apt-get install libssl-dev=1.0.2g-1ubuntu4.12 | |
# QT5 | |
# ---------------------------- | |
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler | |
# QT4 | |
# ---------------------------- | |
sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler | |
# Download Bitcoin Source code | |
# ---------------------------- | |
cd ~ | |
git clone https://github.com/bitcoin/bitcoin.git | |
# Bitcoin uses the Berkley DB 4.8 | |
# We need to install it as well | |
# Download & Install Berkley DB | |
# ----------------------------- | |
sudo add-apt-repository ppa:bitcoin/bitcoin | |
sudo apt-get update | |
sudo apt-get install libdb4.8-dev libdb4.8++-dev | |
# Compile Bitcoin with Berkley DB 4.8 | |
# ----------------------------------- | |
cd ~/bitcoin/ | |
./autogen.sh | |
# below command ./configure may return with error for dependencies | |
# you need to make sure that it returns with no error | |
# If it does please install the dependencies and rerun the /autogen.sh command again and then below command again | |
./configure | |
# below command may take 5-10 minutes based on your system | |
make -s -j5 | |
# If all went well you will be able to access the binary at below location | |
cd ~/bitcoin/ | |
./src/bitcoind | |
./src/bitcoin-qt | |
./src/bitcoin-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example with incompatble berkley DB and QT4
./configure --enable-debug --with-incompatible-bdb --with-gui=qt4