This repository hosts dogschain, the implementation of the dogschain based on the Cosmos SDK.
Note: Requires Go 1.15+
This guide will explain how to install the dogschaind and dogschaincli entrypoints onto your system.
Install go by following the official docs. Remember to set your $PATH environment variable, for example:
mkdir -p $HOME/go/bin
echo "export PATH=$PATH:$(go env GOPATH)/bin" >> ~/.bash_profile
echo "export GOPATH=$HOME/go" >> ~/.bash_profile
echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile
echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile
source ~/.bash_profile
Under Windows, you may set environment variables(HOME or GO111MODULE) through the “Environment Variables” button on the “Advanced” tab of the “System” control panel. Some versions of Windows provide this control panel through the “Advanced System Settings” option inside the “System” control panel.
$env:GO111MODULE="on"
Next, let’s install the latest version of DogsChain. Make sure you git checkout the latest released version.
git clone -b <latest-release-tag> https://github.com/dogschain/dogschain
export GO111MODULE=on
cd dogschain && make install
If this command fails due to the following error message, you might have already set LDFLAGS prior to running this step.
flag provided but not defined: -L
usage: link [options] main.o
...
make: *** [install] Error 2
Unset this environment variable and try again.
LDFLAGS="" make install
NOTE: If you still have issues at this step, please check that you have the latest stable version of GO installed.
That will install the dogschaind and dogschaincli binaries. Verify that everything is OK:
$ dogschaind version --long
$ dogschaincli version --long
dogschaincli for instance should output something similar to:
name: dogschain
server_name: dogschaind
client_name: dogschaincli
version: 1.0.0
commit: 3a419991283c48c6d9facfff8771f8a21e30a9a7
build_tags: netgo,ledger
go: go version go1.15.8 darwin/amd64
build_deps:
- github.com/cosmos/cosmos-sdk@v0.39.2
- github.com/tendermint/tendermint@v0.33.9
- ...