This is a creation in Article, where the information may have evolved or changed.
find the corresponding package from the Go download page of the Google site
This document is referenced from the official manual
Http://golang.org/doc/install#download
go reads environment variables at run time, such as unread to related environment variables, runs by default;
For example ${goroot}
The. bashrc file under Home directory (~) finally added the following $ VI. BASHRC#GO installation location Export goroot= $HOME/go# similar workspace export gopath= $HOME/mygo# Add Bin directory to environment variable export path=${path}:${gopath}/bin: $GOROOT/bin# declaration 32-bit or 64-bit export goarch=amd64# declares the operating system type export goos= Linuxsource, make the above newly set environment effective $ source. BASHRC
Summarize
Actually install go1.1 or other versions, as long as
- Tell the system where go will be installed (this article is
$HOME/go
)
- Find the corresponding platform file, download the Go package
- Unzip & put it in there
Complete! Green Software!