Running sudo apt-get install golang-stable, I get Go version go1.0.3. Is there any way to install go1.1.1?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
I found a repo that has the latest versions: https://launchpad.net/~duh/+archive/golang/+packages. So basically do:
To confirm:
which outputs in my case (Ubuntu precise)
From there just export the settings you're gonna need to bash_rc or equivalent:
|
|||||||||||||||||||||
|
|
I like to use GVM for managing my Go versions in my Ubuntu box. Pretty simple to use, and if you're familiar with RVM, it's a nobrainer. It allows you to have multiple versions of Go installed in your system and switch between whichever version you want at any point in time. Install GVM with:
and then it's as easy as doing this:
The default flag at the end of the second command will set go1.1.1 to be your default Go version whenever you start a new terminal session. |
|||||||||||||||||||||
|
|
I used following commands from GoLang official repository, it installed GoLang version 1.6 on my Ubuntu 14.04
Reference official GoLang Repo https://github.com/golang/go/wiki/Ubuntu it seems this ppa will always be updated in future. |
|||||
|
|
[October 2015]
Answer because the current accepted answer Step by step installation:
Possible errors + fixes: (to be updated)If you get a |
|||||
|
|
i installed from source. there is a step-by-step tutorial here: http://golang.org/doc/install/source |
|||||||||||||||||||||
|
|
Here is the most straight forward and simple method I found to install go on Ubuntu 14.04 without any ppa or any other tool. As of now, The version of GO is 1.7 Get the Go 1.7.tar.gz using wget
Extract it and copy it to
You have now successfully installed GO. Now You have to set Environment Variables so you can use the To achieve this we need to add a line to
and add the following line to the end of file.
Now, All the commands in Check if the install was successful by doing
For offline Documentation you can do
Offline documentation will be available at NOTE: Some people here are suggesting to change the PATH variable. It is not a good choice.
However, this is permanent and does not disturbs anything else. |
|||||||||||||||||||||
|
|
If someone is looking for installing Go 1.8 the follow this:
And then install go
|
|||||||||||||||||||||
|
|
|||||
|
|
For the current release of Go:
|
|||||
|
|
Or maybe you could use this script to install Go and LiteIDE? |
|||
|
|
Setup your GOROOT, GOPATH and PATH:
|
|||
|
|