Last active
March 26, 2016 02:56
-
-
Save threeaccents/4c55f15bbeb7c997db72 to your computer and use it in GitHub Desktop.
install golang 1.6 on ubunutu
This file contains hidden or 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/bash | |
sudo apt-get update | |
sudo apt-get install git | |
curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | |
tar -xvf go1.6.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
mkdir ~/work | |
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile | |
echo "export GOPATH=$HOME/work" >> ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment