Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# update dependency lists
sudo apt-get update
# install build dependencies
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
# more dependencies
sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev
# get repo
git clone && cd bitcoin
# build berkeleydb
./contrib/ `pwd`
# to build
# When compiling bitcoind, run `./configure` in the following way for BDB support
export BDB_PREFIX='/home/ubuntu/bitcoin/db4'
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
make # use "-j N" for N parallel jobs
make install # optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment