Last active
January 17, 2021 14:28
-
-
Save kevingo/9e04d56e042e5f4391f29e9766fd192e to your computer and use it in GitHub Desktop.
Install Go 1.6.2 in Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get -qq update | |
apt-get install wget | |
#setup Go lang | |
cd ~ | |
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz | |
#set envvars | |
export PATH=$PATH:/usr/local/go/bin | |
export GOPATH=$HOME/goworkspace | |
export PATH=$PATH:$GOPATH/bin | |
export PORT=80 | |
#create go workspace | |
mkdir -p $GOPATH/src/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment