Created
May 10, 2018 16:44
-
-
Save blizko/4bc940c5be4986070cb2547125ffc233 to your computer and use it in GitHub Desktop.
Emercoin ARM Raspbery PI Build
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
| # Get the latest Jessie Image (http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/2017-07-05-raspbian-jessie-lite.zip) | |
| # Stretch images could fail and require additional magic. At time of writing Emercoind didn't like the default libboost and libssl-dev versions that come in Stretch. | |
| # Check for more - http://downloads.raspberrypi.org/raspbian_lite/images/ | |
| # Install System to SD Card | |
| # There could be issues with boot. Check link - https://www.raspberrypi.org/forums/viewtopic.php?t=138163 | |
| git clone https://github.com/raspberrypi/firmware --depth=1 | |
| # Replace all boot partition contents. | |
| # On successfull boot on the RPI: | |
| sudo bash | |
| apt-get update && apt-get upgrade | |
| apt-cache policy libboost-all-dev #recheck boost version. 1.55 should work well. | |
| apt-get install build-essential libssl-dev libboost-all-dev libtool git autoconf libupnp-dev | |
| #Idea Source - https://cryptoandcoffee.com/mining-gems/install-berkeley-4-8-db-libs-on-ubuntu-16-04/ | |
| # Build can consume a good amount of memory, need a swapfile. | |
| dd if=/dev/zero of=/swapfile bs=1M count=256 | |
| mkswap /swapfile | |
| swapon /swapfile | |
| mkdir -p /build/bdb | |
| cd /build/bdb | |
| wget http://download.oracle.com/berkeley-db/db-4.8.30.zip | |
| unzip db-4.8.30.zip | |
| cd db-4.8.30 | |
| cd build_unix/ | |
| ../dist/configure --enable-cxx --enable-static=yes | |
| make && make install | |
| cd /build | |
| git clone https://github.com/emercoin/emercoin.git | |
| cd emercoin | |
| ./autogen.sh | |
| export CPPFLAGS='-I/build/bdb/db-4.8.30/build_unix/' | |
| export LDFLAGS='-L/build/bdb/db-4.8.30/build_unix/.libs/' | |
| ./configure | |
| make && make install | |
| # Grab a coffee. Build on the Raspberry takes time | |
| cd /usr/local/bin/ | |
| nohup /usr/local/bin/emercoind -server | |
| /usr/local/bin/emercoin-cli getinfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment