Author Topic: How to compile OKCashd on Raspberry Pi  (Read 1028 times)

pta2002

  • Jr. Member
  • **
  • Posts: 3
  • Trust: 0
    • View Profile
How to compile OKCashd on Raspberry Pi
« on: March 24, 2017, 04:05:11 PM »
If you for some reason don't want to install ROKOS, it's not very hard to compile okcashd on your pi. Keep in mind though, it'll take a while.

Please note that this will only install the daemon, not the GUI. This has been tested on a raspberry pi 3 running raspbian jessie.

STEP 1 Update your OS!

Code: [Select]
$ sudo apt update
$ sudo apt upgrade -y

STEP 2 Install dependencies

Code: [Select]
$ sudo apt-get install autoconf libevent-dev libtool libssl-dev libboost-all-dev libminiupnpc-dev git -y

STEP 3 Build BDB4.8

OKCash (and most other bitcoin-based cryptocurrencies) require berkeley db 4.8 to build, however, this version is deprecated and not found on most distro's repositories. Fortunately, we can compile it ourselves!

Code: [Select]
$ 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 --enable-cxx
$ make -j4 # If this causes problems, decrease the number
$ sudo make install

STEP 4 Download okcash source

Code: [Select]
$ cd ~
$ git clone https://github.com/okcashpro/okcash.git
$ cd okcash/src

STEP 5 Compile!

Code: [Select]
$ make -f makefile.unix -j2 BDB_INCLUDE_PATH=/usr/local/BerkeleyDB4.8/include/

If this fails, remove -j2. If it still fails, ask me. This will take a while (~1h) so take a break.

STEP 6 Install

Code: [Select]
$ sudo make install
STEP 7 Done!

Feel free to use okcashd now! It has to sync first though, so why not download the okcash bootstrap? https://github.com/okcashpro/ok-scripts/blob/master/linux/ok-sync-arm64.sh