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
But if you want the latest stable release, look for it here:
https://github.com/bitcoin/bitcoin/releases
For this case:
v0.17.0.1 … Bitcoin Core 0.17.0.1 final
So you would do:
cd ~/source git clone https://github.com/bitcoin/bitcoin.git --branch v0.17.0.1 cd bitcoin ./autogen.sh ./configure make sudo make install