github.com/cybriq/giocore@v0.0.7-0.20210703034601-cfb9cb5f3900/prereqs/go.sh (about) 1 #!/bin/bash 2 cd $HOME 3 wget -c https://golang.org/dl/go1.16.2.linux-amd64.tar.gz 4 sudo rm -rf go 5 tar xvf go1.16.2.linux-amd64.tar.gz 6 cat >> $HOME/.bashrc <<- EOM 7 export GOPATH=\$HOME 8 export GOROOT=\$GOPATH/go 9 export GOBIN=\$GOPATH/bin 10 export PATH=\$GOBIN:\$GOROOT/bin:\$PATH 11 EOM 12 source $HOME/.bashrc 13 mkdir -p $GOPATH/src/github.com/p9c 14 cd $GOPATH/src/github.com/p9c 15 git clone https://github.com/p9c/p9.git 16 cd pod 17 make -B builder