This guide will explain how to install the gaiad
and gaiacli
entrypoints onto your system. With these installed on a server, you can participate in the mainnet as either a Full Node or a Validator.
Install go
by following the official docs. Remember to set your $GOPATH
, $GOBIN
, and $PATH
environment variables, for example:
mkdir -p $HOME/go/bin
echo "export GOPATH=$HOME/go" >> ~/.bash_profile
echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile
echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile
::: tip Go 1.11.5+ is required for the Cosmos SDK. :::
Next, let's install the latest version of Gaia. Here we'll use the master
branch, which contains the latest stable release.
If necessary, make sure you git checkout
the correct
released version.
::: warning
For the mainnet, make sure your version if greather than v0.33.0
:::
mkdir -p $GOPATH/src/github.com/cosmos
cd $GOPATH/src/github.com/cosmos
git clone https://github.com/cosmos/cosmos-sdk
cd cosmos-sdk && git checkout master
make tools install
NOTE: If you have issues at this step, please check that you have the latest stable version of GO installed.
That will install the gaiad
and gaiacli
binaries. Verify that everything is OK:
$ gaiad version --long
$ gaiacli version --long
gaiacli
for instance should output something similar to:
cosmos-sdk: 0.33.0
git commit: 7b4104aced52aa5b59a96c28b5ebeea7877fc4f0
vendor hash: 5db0df3e24cf10545c84f462a24ddc61882aa58f
build tags: netgo ledger
go version go1.12 linux/amd64
Build tags indicate special features that have been enabled in the binary.
Build Tag | Description |
---|---|
netgo | Name resolution will use pure Go code |
ledger | Ledger devices are supported (hardware wallets) |
Do not use snap at this time to install the binaries for production until we have a reproduceable binary system.
Now you can join the mainnet, the public testnet or create you own testnet