Building Bitcoin Core 0.16.3 from source on Ubuntu 18.04.1 desktop amd64

How to build Bitcoin Core 0.16.3 from source on Ubuntu 18.04.1 desktop amd64

You will need to use this PPA so the Berkley DB can get downloaded and installed.

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update

Here are all the dependencies that I used:

sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev  libboost-all-dev miniupnpc libdb4.8 libdb4.8-dev libdb4.8++-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libminiupnpc-dev libqrencode-dev libssl-dev libevent-dev

Here, the code is in the ~/source folder, if you have it somewhere else, use that:

cd ~/source

Download the source code:

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin

Now we will compile, this process is very lengthy:

./autogen.sh
./configure
make
sudo make install

Upgraded to:
Bitcoin Core version v0.17.99.0-1e8f88e07 (64-bit)

cd ~/source/bitcoin
git pull
./autogen.sh
./configure
make
sudo make install

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.