Prerequisites
- Install the go language package for your system
- Configure environment variables for go system
- install the ZMQ4, UCL, Argon2 libraries
For shell add the following to the shell's profile
(remark the export CC=clang
if you wish to use gcc)
# check for go installation
GOPATH="${HOME}/gocode"
if [ -d "${GOPATH}" ]
then
gobin="${GOPATH}/bin"
export GOPATH
export PATH="${PATH}:${gobin}"
# needed for FreeBSD 10 and later
export CC=clang
else
unset GOPATH
fi
unset gobin
OnFreeBSD/PC-BSD
pkg install libzmq4 libargon2 libucl
On a Debian like system (as of Ubuntu 14.04 this only has V3, so need to search for PPA)
apt-get install libzmq4-dev
# lib ucl and argon2 need to be manually installed
To compile simply:
go get github.com/bitmark-inc/bitmarkd
go install -v github.com/bitmark-inc/bitmarkd
Create the configuration directory, copy sample configuration, edit it to set up IPs, ports and local bitcoin testnet connection.
mkdir -p ~/.config/bitmarkd
cp bitmarkd.conf.sample ~/.config/bitmarkd/bitmarkd.conf
${EDITOR} ~/.config/bitmarkd/bitmarkd.conf
To see the bitmarkd sub-commands:
bitmarkd --config-file="${HOME}/.config/bitmarkd/bitmarkd.conf" help
Generate key files and certificates.
bitmarkd --config-file="${HOME}/.config/bitmarkd/bitmarkd.conf" gen-peer-identity
bitmarkd --config-file="${HOME}/.config/bitmarkd/bitmarkd.conf" gen-rpc-cert
bitmarkd --config-file="${HOME}/.config/bitmarkd/bitmarkd.conf" gen-proof-identity
Start the program.
bitmarkd --config-file="${HOME}/.config/bitmarkd/bitmarkd.conf" start
Note that a similar process is needed for the prooferd (mining subsystem)