I’m just following Andreas bitcoin book on installing bitcoin. Some additional steps are required if using ubuntu 16.04. Note these steps also probably also apply to litecoin if you were going to be using that instead of bitcoin.
First go to github and clone this https://github.com/bitcoin/bitcoin.git
into a directory e.g
mkdir bitcoin
cd bitcoin
git clone https://github.com/bitcoin/bitcoin.git
Check the git tag
git tag
git checkout v0.15.1
git status
Now run autogen
./autogen.sh
I get some errors from this, mainly about Libtool library used but ‘LIBTOOL’ is undefined. Try this:
sudo apt-get install libtool
Autogen should now work.
Now run (note you can disable features with configure see help)
./configure
This time i get an error libdb_cxx headers missing, Bitcoin Core requires this library for wallet functionality.
Try this:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
Now try configure again (./configure). This time i get this error :
error: No working boost sleep implementation found.
try this:
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
Now try to configure again (./configure). This time i get this error:
error: libevent not found
try this:
sudo apt-get install libevent-dev
This time ./configure should work.
now run
make
this might take a while. Finally do
sudo make install