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.gzExtract the tarball into /usr/local directory
sudo tar -xvf go1.15.linux-amd64.tar.gz -C /usr/localSetup your local go directory
mkdir -p $HOME/go/{bin,src,pkg}Add the environment variables for system wide usage, open profile by
nano ~/.profileAdd the go paths
export GOPATH=$HOME/goexport PATH=$PATH:$GOPATH/bin:/usr/local/go/binexport GOBIN=$GOPATH/binWith the appropriate line pasted into your profile, save and close the file. Next, refresh your profile by running:
source ~/.profileInstalling binaries#
Next, we need to install the appropriate version of cusp
git clone https://github.com/libonomy/cuspEnter the directory
cd cusp/Within Cusp directory point to the relevant release
git checkout v1.0.0After switching to the release, install the required dependencies
make installIn case of error , install build dependencies
sudo apt updatesudo apt install build-essentialsudo apt-get install manpages-devMake sure you are running correct version by using command
cuspd versioncuspcli 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