You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
697 B
23 lines
697 B
#Install Bitcoin
|
|
cd ~
|
|
git clone https://github.com/bitcoin/bitcoin.git
|
|
cd bitcoin
|
|
#I like getinfo
|
|
git checkout 0.15
|
|
|
|
#BDB 4.8 for bitcoin
|
|
BTC_ROOT=$(pwd)
|
|
BDB_PREFIX="${BTC_ROOT}/db4"
|
|
mkdir -p $BDB_PREFIX
|
|
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 -xzvf db-4.8.30.NC.tar.gz
|
|
cd db-4.8.30.NC/build_unix/
|
|
../dist/configure -enable-cxx -disable-shared -with-pic -prefix=$BDB_PREFIX
|
|
make -j$(nproc)
|
|
make install
|
|
|
|
cd ~/bitcoin
|
|
./autogen.sh
|
|
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" -without-gui -without-miniupnpc
|
|
make -j$(nproc)
|
|
|