Skip to content

install golang

require version 1.13 or later



tar -xzf go1.14.4.linux-amd64.tar.gz -C /usr/local

vim ~/.bashrc

export GOPATH=/root/go

export GOROOT=/usr/local/go

export GOARCH=amd64

export GOOS=linux

export GOBIN=$GOROOT/bin/

export GOTOOLS=$GOROOT/pkg/tool/


install gcc

At the same time, GCC needs to be installed, with unlimited versions.

linux example:

sudo apt update

sudo apt install build-essential

compile drep code

Download source code

git clone

cd DREP-Chain 

In chaina,the machine needs to climb over the wall, otherwise the dependent code cannot be downloaded.

go install ./cmds/drep/drep.go

now, source compile drep success!