Matt Hughes i like to grow tiny trees and tinker on stuff

AssPennies! - Compiling a scrypt cryptocurrency on Raspberry Pi

I wanted to set up a node for the AssPennies network, and have not tried compiling the Qt client. I'm running my Raspberry Pi headless, so this guide will focus on compiling the AssPennies daemon instead.

Used .deb packages from here:


You can go on and try to comipile now, but you will probably run into the errors I describe below. I don't particularly recommend it, because it takes a loooooooooong time to compile.

If you're stubborn, navigate to ~/AssPennies/src/ and run make -f makefile.unix to start the build.

Compiler errors!

So the Raspberry Pi is pretty light on resources, and I ran out of virtual memory when compiling asspenniesd.

I found out that adding more swap space to my Pi would allow me to compile correctly. The fix is described here:

sudo dd if=/dev/zero of=/swap0 bs=1M count=512 #
sudo mkswap /swap0
sudo echo "/swap0 swap swap" >>/etc/fstab
sudo swapon -a

I got an error trying to run the sudo echo "/swap0 swap swap" >>/etc/fstab command: -bash: /etc/fstab: Permission denied

I ended up just using vim (or your inferior editor of choice) to edit /etc/fstab instead, and added /swap0 swap swap to the end of the file.

Run make -f makefile.unix clean to clean up any previous attempts, then make -f makefile.unix to start the build. Then pour yourself a whisky and light a fine cigar, because it's going to be at least another hour until it finishes.

More errors! This time it's IVP6

Compiled correctly, but got this error: ./asspenniesd Error: An error occured while setting up the RPC port 21000 for listening: open: Address family not supported by protocol. I did some searching, and this error seemed to be related to IPV6.

I tried recompiling without IPV6 support, but still received the same error after running asspenniesd. I ended up having to enable IPV6 in Raspbian to run the daemon correctly.

I followed the IPV6 instructions here:

Running sudo modprope ipv6 enabled IPV6 immediately, and then I added an ipv6 line to the end of /etc/modules, so IPV6 was automatically enabled after rebooting.