Xjail/Spartancoin Project

Update of "Build Spartancoin On FreeBSD"

Artifact ID: 373aa9e5da679ad0655cd52c68ac8831ee32eb6de39654d702ce2e50b67f8dac
Page Name:Build Spartancoin On FreeBSD
Date: 2018-03-17 12:28:55
Original User: admin
Parent: 57ee1f44439c6a25ff91cbb411c17e78957dbbe487b82a9b71e4bce6614f5982 (diff)

A. Build Spartancoin-Qt On FreeBSD

(shell: mksh)

Install Required Packages

# pkg install -y fossil qt5 qt5-buildtools boost-libs db5 miniupnpc libqrencode gmake

DB5 should have been installed previously.

Clone Xjail/SpartanCoin Code

$ fossil clone https://www.fossil.tiv.cc/xjail/spartancoin spartancoin.fossil
$ mkdir spartancoin
$ cd spartancoin
$ fossil open ../spartancoin.fossil

Buid spartancoin-qt

Your terminal should already cd into spartancoin fossil open folder now.

$ qmake
$ export CPLUS_INCLUDE_PATH="/usr/local/include:/usr/local/include/db5"
$ export LIBRARY_PATH="/usr/local/lib:/usr/local/lib/db5"
$ gmake

When finish building, the spartancoin-qt will be successfully generated.

Install and Configure SpartanCoin-Qt

$ mkdir -p ~/bin/
$ cp spartancoin-qt ~/bin/
$ cd
$ spartancoin-qt

After a while, a spartancoin-qt window should be opened. It will create folder ~/.spartancoin and create ~/.spartancoin/wallet.dat by default.

Encrypt your wallet.dat and backup it if you want or if you transfer some coins into your wallet.

Block Chain Data Synchronization

After opening the spartancoin wallet window, the app will begin to find peers automatically. Please wait for one or two minutes.

B. Build spartancoind On FreeBSD

If you want to run a spartancoin peer on console, you don't need a desktop.

Build spartancoind

To build spartancoind, you don't need to build spartancoin-qt first, And you don't need to install Qt toolkit.

$ cd spartancoin/src/
$ export CPLUS_INCLUDE_PATH="/usr/local/include:/usr/local/include/db5"
$ export LIBRARY_PATH="/usr/local/lib:/usr/local/lib/db5"
$ gmake -f makefile.freebsd

Configure spartancoind

$ cp spartancoind ~/bin                                                                   
$ cd ~/.spartancoin
$ vim spartancoin.conf

You should have installed vim-lite or other editors.

Then write some lines into spartancoin.conf like these:

# spartancoin.conf

Then just type spartancoind to launch the spartandoin daemon.

$ spartancoind
Spartancoin server starting

spartancoind command line usage

You should close the spartancoin-qt window and run these commands.


$ spartancoind getinfo


$ spartancoind getpeerinfo


$ spartancoind help


$ spartancoind stop

--help (Read Startup Options):

$ spartancoind --help