I cannot install Go properly

Asked by At

I downloaded go with the MSI installer. Then in bin I have go, godoc and gofmt, I don't know which of the three I have to use. Also, when I click go it is hard to open the black screen and when I try to type some numbers appear and the screen is suddenly closed

I'm trying to install this:
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

The first part is already done with the MSI installer, I didnt set any environment variables as asked here "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
source ~/.bash_profile

0 Answers