dinsdag 12 december 2017

Install berkeley 4.8 db libs on Ubuntu 16.04

  1. sudo add-apt-repository ppa:bitcoin/bitcoin
  2. sudo apt-get update
  3. sudo apt-get install libdb4.8-dev libdb4.8++-dev
or

  1. wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
  2. unzip db-4.8.30.zip
  3. cd db-4.8.30
  4. cd build_unix/
  5. ../dist/configure --prefix=/usr/local --enable-cxx
  6. make
  7. make install
or

  1. BITCOIN_ROOT=$(pwd)
  2. # Pick some path to install BDB to, here we create a directory within the bitcoin directory
  3. BDB_PREFIX="${BITCOIN_ROOT}/db4"
  4. mkdir -p $BDB_PREFIX
  5. # Fetch the source and verify that it is not tampered with
  6. wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
  7. echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
  8. # -> db-4.8.30.NC.tar.gz: OK
  9. tar -xzvf db-4.8.30.NC.tar.gz
  10. # Build the library and install to our prefix
  11. cd db-4.8.30.NC/build_unix/
  12. # Note: Do a static build so that it can be embedded into the executable, instead of having to find a .so at runtime
  13. ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
  14. make install
  15. # Configure Bitcoin Core to use our own-built instance of BDB
  16. cd $BITCOIN_ROOT
  17. ./autogen.sh
  18. ./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" # (other args...)


Geen opmerkingen:

Een reactie posten