Last active
July 23, 2021 02:09
-
-
Save sapakus/03038b290058088ce1911e62fd5add04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| sudo apt-get update | |
| sudo apt-get install git | |
| mkdir -p src && cd src | |
| git clone https://github.com/bitcoin/bitcoin.git | |
| sudo apt-get install build-essential | |
| wget https://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz | |
| echo "12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz" | sha256sum -c || exit 1 | |
| 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 ../.. | |
| sudo apt-get install autoconf libtool pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libqt4-dev libcanberra-gtk-module | |
| cd bitcoin | |
| git checkout v0.16.0 | |
| ./autogen.sh | |
| ./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --with-gui | |
| make | |
| sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment