J
J
Jeket2015-04-16 00:29:05
go
Jeket, 2015-04-16 00:29:05

How to install / update it correctly, simply and quickly?

How to install it correctly, simply and quickly?
I ask you to write things from your experience and to the point, and not give links to the documentation (I did everything as golang.org/doc/install/source and even tried it through gvm).
The bottom line is that there is an installed version of go1, but for some reason the files that were written on another laptop where go1.4 is installed do not start. Errors like this pop up:

# net/http
Usage: pack op file.a [name....]
Where op is one of cprtx optionally followed by v for verbose output.
For compatibility with old Go build environments the op string grc is
accepted as a synonym for c.

I decided to update go, downloaded the source, compiled it, registered it in the bash, but it doesn't work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem, 2015-04-16
@Jeket

Are you sure the new version is installed correctly? Did you remove the old version? What does go version output?

V
Vitaly Yakovenko, 2015-04-16
@Xazzzi

sudo apt-get install golang
Sorry.

B
Bakhtiyar, 2015-04-18
@bikbah

try docker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question