2018-12-01 09:54:59 -08:00
## Install Gaia
2018-07-12 13:58:12 -07:00
2018-11-14 11:44:17 -08:00
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 latest testnet as either a [Full Node ](./join-testnet.md#run-a-full-node ) or a [Validator ](./validators/validator-setup.md ).
2018-07-12 13:58:12 -07:00
2018-12-01 09:54:59 -08:00
### Install Go
2018-07-12 13:58:12 -07:00
Install `go` by following the [official docs ](https://golang.org/doc/install ). Remember to set your `$GOPATH` , `$GOBIN` , and `$PATH` environment variables, for example:
```bash
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
2019-01-31 17:20:58 -08:00
**Go 1.11.5+** is required for the Cosmos SDK.
2018-07-12 13:58:12 -07:00
:::
2018-12-01 09:54:59 -08:00
### Install the binaries
2018-07-12 13:58:12 -07:00
2018-11-14 11:44:17 -08:00
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
2018-08-08 09:26:31 -07:00
[released version ](https://github.com/cosmos/cosmos-sdk/releases ).
2018-07-12 13:58:12 -07:00
```bash
mkdir -p $GOPATH/src/github.com/cosmos
cd $GOPATH/src/github.com/cosmos
git clone https://github.com/cosmos/cosmos-sdk
2018-08-08 09:26:31 -07:00
cd cosmos-sdk & & git checkout master
2019-01-28 09:49:13 -08:00
make tools install
2018-07-12 13:58:12 -07:00
```
2018-11-14 11:44:17 -08:00
> *NOTE*: If you have issues at this step, please check that you have the latest stable version of GO installed.
2018-07-12 13:58:12 -07:00
That will install the `gaiad` and `gaiacli` binaries. Verify that everything is OK:
```bash
2019-02-13 09:53:16 -08:00
$ gaiad version --long
$ gaiacli version --long
2018-07-12 13:58:12 -07:00
```
2019-02-13 09:53:16 -08:00
`gaiacli` for instance should output something similar to:
```
cosmos-sdk: 0.31.2-10-g1fba7308
git commit: 1fba7308fa226e971964cd6baad9527d4b51d9fc
vendor hash: 1aec7edfad9888a967b3e9063e42f66b28f447e6
build tags: netgo ledger
go version go1.11.5 linux/amd64
```
##### Build Tags
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) |
2019-02-15 07:36:37 -08:00
### Install binary distribution via snap (Linux only)
2019-03-09 19:13:27 -08:00
**Do not use snap at this time to install the binaries for production until we have a reproduceable binary system.**
2019-02-15 07:36:37 -08:00
2018-12-01 09:54:59 -08:00
### Next
2018-07-12 13:58:12 -07:00
2019-01-03 08:08:10 -08:00
Now you can [join the public testnet ](./join-testnet.md ) or [create you own testnet ](./deploy-testnet.md )