Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
It works if you follow this procedure: askubuntu.com/questions/463989/installing-the-go-language/… –  Paul Sep 25 at 19:05

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.