Created
June 21, 2019 13:52
-
-
Save imylomylo/fa0fc56c9989e0696bf53222f97950cf to your computer and use it in GitHub Desktop.
script to build emc2 taken from notary channel
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/bash | |
# EMC2 build script for Ubuntu & Debian 9 v.3 (c) Decker (and webworker) | |
berkeleydb () { | |
EMC2_ROOT=$(pwd) | |
EMC2_PREFIX="${EMC2_ROOT}/db4" | |
mkdir -p $EMC2_PREFIX | |
wget -N '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=$EMC2_PREFIX | |
make install | |
cd $EMC2_ROOT | |
} | |
buildemc2 () { | |
git pull | |
make clean | |
./autogen.sh | |
./configure LDFLAGS="-L${EMC2_PREFIX}/lib/" CPPFLAGS="-I${EMC2_PREFIX}/include/" --with-gui=no --disable-tests --disable-bench --without-miniupnpc --enable-experimental-asm --enable-static --disable-shared | |
make -j$(nproc) | |
} | |
cd ~/einsteinium | |
berkeleydb | |
buildemc2 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment