Skip to content

install golang

require version 1.13 or later

example:


wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz

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/

export PATH=$PATH:$GOBIN:$GOTOOLS

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 https://github.com/drep-project/DREP-Chain.git

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!