|
|
@ -1,14 +1,6 @@ |
|
|
|
sudo yum update -y |
|
|
|
cd /home/ec2-user/ |
|
|
|
sudo yum install -y golang |
|
|
|
mkdir -p projects/src |
|
|
|
|
|
|
|
|
|
|
|
# GOROOT is the location where Go package is installed on your system |
|
|
|
|
|
|
|
export GOROOT=/usr/lib/golang |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GOPATH is the location of your work directory |
|
|
|
|
|
|
|
export GOPATH=$HOME/projects |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# PATH in order to access go binary system wide |
|
|
|
|
|
|
|
Aloks-iMac:harmony-benchmark alokkothari$ cat /Users/alokkothari/Documents/goworkspace/src/github.com/harmony-benchmark/setup_golang.sh |
|
|
|
|
|
|
|
sudo yum update -y |
|
|
|
sudo yum update -y |
|
|
|
sudo yum install -y golang |
|
|
|
sudo yum install -y golang |
|
|
|
|
|
|
|
|
|
|
@ -18,6 +10,7 @@ export GOROOT=/usr/lib/golang |
|
|
|
# GOPATH is the location of your work directory |
|
|
|
# GOPATH is the location of your work directory |
|
|
|
export GOPATH=$HOME/projects |
|
|
|
export GOPATH=$HOME/projects |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# PATH in order to access go binary system wide |
|
|
|
# PATH in order to access go binary system wide |
|
|
|
export PATH=$PATH:$GOROOT/bin |
|
|
|
export PATH=$PATH:$GOROOT/bin |
|
|
|
|
|
|
|
|
|
|
|