Skip to main content

Install cusp

In this guide we will explain how to install cusp and participate in POS network channel of Libonomy.

Install build requirements#

Start by installing make and gcc binaries

sudo apt-get update
sudo apt-get install -y make gcc

Install GoLang#

Install go version 1.15 or above

Start by downloading the tarball

curl -O https://dl.google.com/go/go1.15.linux-amd64.tar.gz

Extract the tarball into /usr/local directory

sudo tar -xvf go1.15.linux-amd64.tar.gz -C /usr/local

Setup your local go directory

mkdir -p $HOME/go/{bin,src,pkg}

Add the environment variables for system wide usage, open profile by

nano ~/.profile

Add the go paths

export GOPATH=$HOME/goexport PATH=$PATH:$GOPATH/bin:/usr/local/go/binexport GOBIN=$GOPATH/bin

With the appropriate line pasted into your profile, save and close the file. Next, refresh your profile by running:

source ~/.profile

Installing binaries#

Next, we need to install the appropriate version of cusp

git clone https://github.com/libonomy/cusp

Enter the directory

cd cusp/

Within Cusp directory point to the relevant release

git checkout v1.0.0

After switching to the release, install the required dependencies

make install

In case of error , install build dependencies

sudo apt updatesudo apt install build-essentialsudo apt-get install manpages-dev

Make sure you are running correct version by using command

  • cuspd version
  • cuspcli version

Version 1.0.0

Now your SDK for interaction with the staking network is properly setup and you can headover to the next section to setup your mainnet node Running the daemon service and connecting through cli to execute commands