Skip to content

Instantly share code, notes, and snippets.

@kevingo
Last active January 17, 2021 14:28
Show Gist options
  • Save kevingo/9e04d56e042e5f4391f29e9766fd192e to your computer and use it in GitHub Desktop.
Save kevingo/9e04d56e042e5f4391f29e9766fd192e to your computer and use it in GitHub Desktop.
Install Go 1.6.2 in Ubuntu 14.04
#!/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