How to install go 1.2 on Ubuntu 12.04 LTS

658 查看

Download archive tar.gz from here

sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin

export GOROOT=/usr/local/go

go version 

`go version go1.2.1 linux/amd64`