Compile Phore wallet on Linux (e.g. to stake at a raspberry pi)

in phore •  7 years ago 

Hey,

since I like the NAVCOIN (NAV) project and the idea of anonymous dApps, I needed to take a look at the Phore (PHR) project. I wanted to test it on a raspberry pi. Unfortunately there are no binaries or guides for Linux, here is how I compiled the wallet on a pi3 (skip the lines staring with #, they are comments):
The raspberry pi has not enough ram and the swap is by default too small to compile this wallet. I created a 1GB swap file on my pi3:

sudo su -c 'echo "CONF_SWAPSIZE=1024" > /etc/dphys-swapfile'
sudo dphys-swapfile setup
sudo dphys-swapfile swapon

Now we are ready to rumble:

# bring everything up to date
sudo apt update
sudo apt dist-upgrade

# remove current openssl version, it's not compatible to most wallets (BIGNUM issue) and install older/compatible version:
sudo apt remove libssl-dev
sudo apt install libssl1.0-dev libssl1.0.2

# install dependencies
sudo apt install build-essential git autoconf libtool pkg-config libboost-all-dev libssl-dev libevent-dev
# install this dependencies if you want a gui (qt window), skip this line if you don't want a gui!
sudo apt install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler

# BerkeleyDB 4.8
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make -j3
sudo make install
cd

# Phore wallet
git clone https://github.com/phoreproject/Phore.git
cd Phore/
export ACLOCAL_PATH=/usr/share/aclocal
./autogen.sh
./configure
# This will take a while (hours) on a raspberry, you might want to start it in a screen:
make
sudo make install

Have fun.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!