This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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