Binaries for RaspberryPi or other ARM devices?

As I had my RaPi wiped I decided to give it a fresh start (I had made an image of the SD card, but sometimes it’s just an opportunity to get rid of trash).
Here’s the part that deals with compiling nud using BerkeleyDB4.8 on the RaPi.

Step 1 - BerkeleyDB:

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

Step 2 - Nu:

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

cd ~/
wget https://bitbucket.org/JordanLeePeershares/nubit/get/6fe88883f316.zip
unzip 6fe88883f316.zip
cd ~/JordanLeePeershares-nubit-6fe88883f316/src/

sed -i s/USE_UPNP:=0/USE_UPNP:=-/ makefile.unix
# you might have recognized that the packages libdb++-dev libminiupnpc-dev haven't been installed; libdb isn't necessary, because 4.8.30 was installed from source and I don't use upnp - please adjust that if you feel the need for it

make -f makefile.unix
strip nud
sudo cp nud /bin

The compilation is still running. Will report the outcome :wink:

I recommend to install and make use of screen

sudo apt-get install screen

because it allows you to compile on the RaPi without staying connected to it (speaking of SSH connection here, not attached keyboard and monitor).

screen -dmS compilingStuff
screen -r compilingStuff

Does the trick.
You can disconnect from the screen by entering CTRL+a, CTRL+d and resume the screen again with

screen -r [name or PID of screen]

Update:

JordanLeePeershares-nubit-6fe88883f316/src $ ./nud getinfo
{
    "version" : "v2.0.1-unk-beta",
    "protocolversion" : 50000,
    "walletversion" : 1,
    "walletunit" : "S",
    "balance" : 0.0,
    "newmint" : 0.0,
    "stake" : 0.0,
    "parked" : 0.0,
    "blocks" : 2185,
    "moneysupply" : 1000067481.0,
    "connections" : 7,
    [...]
    "difficulty" : 0.00024414,
    "testnet" : false,
    "keypoololdest" : 1410815209,
    "keypoolsize" : 101,
    "paytxfee" : 1.0,
    "unlocked_until" : 0,
    "errors" : ""
}
3 Likes