[Suggestion] "Minting on a Raspberry Pi" #22

Closed
Lamz0rNewb opened this Issue Sep 6, 2015 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

Lamz0rNewb commented Sep 6, 2015

Page Title: Minting on a Raspberry Pi
URL: https://docs.nubits.com//nu-raspberry-minting/

Update Suggested

Installing BerkeleyDB4.8 from source - in case no repository with compiled packages can be found

don't install libdb++-dev from repository - it might be newer than 4.8 and nud compiled with libdb > 4.8 converts .dat files in ~/.nu to a format that is not compatible with official releases that use libdb4.8

Adjusted dependencies for compiling nud with libdb4.8:

sudo apt-get install checkinstall subversion git git-core build-essential libssl-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libcurl4-openssl-dev libminiupnpc-dev

cd ~/
wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
tar xvf db-4.8.30.tar.gz
cd ~/db-4.8.30/build_unix
../dist/configure --enable-cxx
make

this might take a while - even on RaPi2

sudo make install
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.4.8/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.4.8/lib"
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so /usr/lib/libdb-4.8.so
sudo ln -s /usr/local/BerkeleyDB.4.8/lib/libdb_cxx-4.8.so /usr/lib/libdb_cxx-4.8.so

This comment has been minimized.

Show comment Hide comment
@CoinGame

CoinGame Sep 6, 2015

Contributor

Have you run through the steps that you outlined here?

Contributor

CoinGame commented Sep 6, 2015

Have you run through the steps that you outlined here?

This comment has been minimized.

Show comment Hide comment
@Lamz0rNewb

Lamz0rNewb Sep 6, 2015

Contributor

Yes, but you can try yourself if you want to verify it ;)
Maybe it's necessary to underline that exporting the variables should be done close to compiling nud - I'm not sure whether the export survives a reboot or a change of context.

Contributor

Lamz0rNewb commented Sep 6, 2015

Yes, but you can try yourself if you want to verify it ;)
Maybe it's necessary to underline that exporting the variables should be done close to compiling nud - I'm not sure whether the export survives a reboot or a change of context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment