Life In The Stack Trace...

TODO: <Insert clever marketing phrase here>

Installing Go 1.4.2 on Ubuntu (Trusty) 14.04

This is an update to my previous article in this series. This article will be to the point For more details, see my previous article.

Install instructions seem to be in the same place: http://golang.org/doc/install#install

Downloads seem to have moved to: https://golang.org/dl/

Choose an appropriate download for your platform.

Download a tarball

(For Ubuntu (Trusty) 14.04 I chose the following)
wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz

Expand it

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

Add go bin directory /usr/local/go/bin to the PATH environment variable.

# edit .profile in your home directory
nano ~/.profile

# add the following line
export PATH=$PATH:/usr/local/go/bin

For system-wide installation

# edit .profile in your home directory
nano /etc/profile

# add the following line
export PATH=$PATH:/usr/local/go/bin

Normally, you would have to logout of your system and log in again for the changes to take effect, however, you have the option of reloading .profile

source ~/.profile

or

source /etc/profile

Test your installation

# notice that you don't have to prefix version with a hyphen "-"
go version

# my output was
go version go1.2.1 linux/amd64
  • Custom install

See my prevous article.

Enjoy!

Duck