Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

Lamz0rNewb opened this issue Sep 6, 2015 · 2 comments

Comments

@Lamz0rNewb
Copy link
Contributor

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

@CoinGame
Copy link
Contributor

CoinGame commented Sep 6, 2015

Have you run through the steps that you outlined here?

@Lamz0rNewb
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants