Skip to content

Instantly share code, notes, and snippets.

@ethicnology
Last active March 19, 2022 13:52
Show Gist options
  • Save ethicnology/c44eae5337c580e82752fbcb2bbe8568 to your computer and use it in GitHub Desktop.
Save ethicnology/c44eae5337c580e82752fbcb2bbe8568 to your computer and use it in GitHub Desktop.
build elements blockchain
#!/bin/bash
sudo apt install git
cd
git clone https://github.com/ElementsProject/elements.git
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler imagemagick librsvg2-bin
sudo apt-get install libqrencode-dev autoconf openssl libssl-dev libevent-dev
sudo apt-get install libminiupnpc-dev
sudo apt install jq
mkdir bdb4
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' db-4.8.30.NC/dbinc/atomic.h
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/$USER/bdb4/
make install
cd
cd elements
./autogen.sh
./configure LDFLAGS="-L/home/$USER/bdb4/lib/" CPPFLAGS="-I/home/$USER/bdb4/include/"
make
sudo make install
which elementsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment