Skip to content

Installation Instructions for Linux

zhaojun-sh edited this page Dec 20, 2018 · 1 revision

Building from source

Recommended use Ubuntu 18.04 to build the dcrm-go source code.

Install Requirements

Building dcrm-go(gdcrm) requires Git, Go and C compilers to be installed:

sudo apt-get install -y build-essential golang git

Building pbc requires bison, flex and gmp to be installed:

sudo apt-get install -y bison flex libgmp-dev

Recommended go version 1.9 or higher.

Set GOPATH environment

For Go to work properly, you need to set the following two environment variables:

  • Setup a go folder: mkdir -p ~/dcrm; echo "export GOPATH=$HOME/dcrm" >> ~/.bashrc
  • Update your path: echo "export PATH=$PATH:$GOPATH/bin" >> ~/.bashrc
  • Read the environment variables into current session: source ~/.bashrc

Get source code

Clone the repository to a directory of your choosing:

git clone https://github.com/FUSIONFoundation/dcrm-go.git $GOPATH/

Building Gdcrm (command line client)

Finally, build the gdcrm program using the following command:

cd $GOPATH/
make gdcrm

Now you can run build/bin/gdcrm to start your dcrm node.