Gnu/Linux : compiler bitcoin-core 0.20.0
apt-get update -y
apt-get install git -y
mkdir -p src && cd src
git clone https://github.com/bitcoin/bitcoin.git
ls bitcoin
apt-get install build-essential -y
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar -xvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
mkdir -p build
BDB_PREFIX=$(pwd)/build
../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX
make install
cd ../..
apt-get install autoconf libtool pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libqt4-dev libcanberra-gtk-module -y
mkdir /home/admin/db4
cd bitcoin/contrib/
./install_db4.sh /home/admin/db4/
BDB_PREFIX="/home/admin/db4/db4/"
export BDB_PREFIX='/home/aadmin/db4/db4'
export BDB_INCLUDE_PATH="/home/admin/db4/db4/include/"
export BDB_LIB_PATH="/home/admin/db4/db4/lib/"
cd ~/src/bitcoin/
git clone https://github.com/bitcoin/bitcoin.git
git checkout v0.20.0
./autogen.sh
apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools -y
apt-get install libqrencode-dev -y
./contrib/install_db4.sh `pwd`
./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --without-gui
make
Source : shareannonce