-
-
Save dasgoll/5e1a46cb3e7a35746bb88f386fcf78fa to your computer and use it in GitHub Desktop.
How to Install GO Lang on CentOS / Amazon Linux?
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
| $ sudo wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz <BR> | |
| $ tar -xzf go1.4.2.linux-amd64.tar.gz <BR> | |
| $ export GOROOT=PATH_WHERE_YOU_EXTRACT_GO <BR> | |
| $ export PATH=$PATH:$GOROOT/bin <BR> | |
| $ export GOBIN=$GOROOT/bin <BR> | |
| $ mkdir ~/golang/ <BR> | |
| $ export GOPATH=~/golang/ <BR> | |
| $ export PATH=$GOPATH/bin:$PATH <BR> | |
| $ go get code.google.com/p/go-tour/gotour | |
| $ gotour <BR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment