Skip to content

Instantly share code, notes, and snippets.

@mattmcgiv
Last active February 15, 2023 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattmcgiv/d9c4d93a596827a53113ef830f0f0916 to your computer and use it in GitHub Desktop.
Save mattmcgiv/d9c4d93a596827a53113ef830f0f0916 to your computer and use it in GitHub Desktop.
# 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 https://github.com/bitcoin/bitcoin/ && cd bitcoin
# build berkeleydb
./contrib/install_db4.sh `pwd`
# to build
./autogen.sh
# 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