Skip to content

Instantly share code, notes, and snippets.

@satindergrewal
Forked from earonesty/bitcoin-compile-ubuntu
Created November 18, 2017 04:24
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 satindergrewal/fa9744d7d7624ae783f2ce2d92f79076 to your computer and use it in GitHub Desktop.
Save satindergrewal/fa9744d7d7624ae783f2ce2d92f79076 to your computer and use it in GitHub Desktop.
apt-get update
apt-get upgrade
apt-get -y install git
apt-get -y install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
apt-get -y install libboost-all-dev
apt-get -y install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
apt-get -y install libqrencode-dev
apt-get -y install libminiupnpc-dev
apt-get -y install libevent-dev
cd ~
git clone https://github.com/bitcoin/bitcoin.git
cd ~
mkdir bitcoin/db4/
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
db4dir=$(readlink -e ~/bitcoin/db4)
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$db4dir
make install
cd ~/bitcoin/
./autogen.sh
./configure BDB_LIBS="-L$db4dir/lib -ldb_cxx" BDB_CFLAGS="-I$db4dir/include"
make -s -j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment