forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Installing Go
Stephan Tual edited this page May 12, 2014
·
25 revisions
Download and run the installer found at http://golang.org/doc/install
Update brew and install Go
brew update; brew install go
Create the Go dir and set the GOPATH
mkdir ~/go; export GOPATH=$HOME/go
Note: it is recommend to use the technique above rather than installing via http://golang.org/doc/install
Download the latest distribution
curl -O https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz
Unpack it to the /usr/local
(might require sudo)
tar -C /usr/local -xzf go1.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
mkdir ~/go; export GOPATH=$HOME/go