环境:AWS (ubuntu)
安装golang (版本>1.12.1)
sudo snap install go
mkdir -p $HOME/go/bin
echo "export GOPATH=$HOME/go" >> ~/.bash_profile
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.bash_profile
source ~/.bash_profile
编译 Gaia
mkdir -p $GOPATH/src/github.com/cosmos
cd $GOPATH/src/github.com/cosmos
git clone https://github.com/cosmos/gaia
cd gaia && make install
最新版本的Gaia: (推荐)
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 v0.35.0
make install
编译出的二进制文件在目录 /home/ubuntu/go/bin
$ gaiad version --long
$ gaiacli version --long
把go/bin目录下编译出的二进制文件拷出也可执行