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
  • 73,717

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,868
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
  • 625