4

I've installed everything go-related from synaptic and later added ppa as described in the wiki: https://wiki.ubuntu.com/Go yet I cannot do "go get" for example

go get code.google.com/p/gorilla/mux

says that go command is not found.

How should I install this "go" command?

Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
Moonwalker
  • 621
  • 1
  • 8
  • 18
  • It works if you follow this procedure: http://askubuntu.com/questions/463989/installing-the-go-language/528487#528487 – Rolf Sep 25 '14 at 19:05

2 Answers2

5

That's a tool that seems to be released recently. If you install the golang-weekly package instead of golang-stable (available also through the ppa:gophers/go PPA), you'll see that go is available under /usr/bin directory.

jcollado
  • 9,498
  • 2
  • 27
  • 26
2

It works if you follow this procedure: Installing the Go Language

You have to modify your ~/.bashrc as follows.

nano ~/.bashrc

export GOPATH=/srv/go
if [ -d "/usr/lib/go/bin" ] ; then
    PATH="${GOPATH}/bin:/usr/lib/go/bin:${PATH}"
fi
Rolf
  • 635
  • 7
  • 7