Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Go (programming language) to Max OS X but "go version" in terminal gives

-bash: go: command not found

Echoing $PATH returns:


What do I need to change to start using Go?

share|improve this question
How did you install it? – Ignacio Vazquez-Abrams Sep 9 '12 at 17:18
The installer linked here: – barcodesIllIIIlIl Sep 9 '12 at 17:55
up vote 10 down vote accepted

Go should be installed to either /usr/local/go/bin or ~/Go/bin — I can't test the installer now.

Try editing your ~/.bash_profile by calling:

nano ~/.bash_profile

Then adding:

export PATH=$PATH:/usr/local/go/bin

Save the file by pressing CtrlO, then , and reload your shell (e.g. by restarting the Terminal). Now, go should work as a command, assuming it is provided as /usr/local/go/bin/go.

share|improve this answer

Your Answer


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.