Last active
August 29, 2015 14:27
-
-
Save neurocis/62229dc35b011205d24f to your computer and use it in GitHub Desktop.
Shell script to build newpiggycoin-qt on ubuntu 15.x w/static BDB 5.1.29 (ubuntu 15 is BDB 5.3)
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
git clone https://github.com/piggycoin/newpiggycoin.git | |
cd newpiggycoin | |
BITCOIN_ROOT=$(pwd) | |
# Pick some path to install BDB to, here we create a directory within the dogecoin directory | |
BDB_PREFIX="${BITCOIN_ROOT}/db5" | |
mkdir -p $BDB_PREFIX | |
# Fetch the source and verify that it is not tampered with | |
wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz' | |
echo '08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c db-5.1.29.NC.tar.gz' | sha256sum -c | |
# -> db-5.1.29.NC.tar.gz: OK | |
tar -xzvf db-5.1.29.NC.tar.gz | |
# Build the library and install to our prefix | |
cd db-5.1.29.NC/build_unix/ | |
# Note: Do a static build so that it can be embedded into the exectuable, instead of having to find a .so at runtime | |
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX | |
make install | |
cd $BITCOIN_ROOT | |
qmake BDB_INCLUDE_PATH=${BDB_PREFIX}/include/ BDB_LIB_PATH=${BDB_PREFIX}/lib/ USE_UPNP=- USE_IPV6=1 USE_QRCODE=1 && make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment