Sounds like Go is not correctly installed/configured in your environment. See
the docs for correct setup:
hg ident
The instructions you list above to install from source will install the last
stable release r60.3, the "go" tool is not available in that release. You will
need a newer release (weekly).
> So Do I need to install the other compiler GCC. And without it I can not
> use "gocode". Because with GCC, I am not able to set the Goclipse.
No you don't need gccgo.
Clean out your installation location then either use the same instructions you
pasted above (weekly.golang.org/doc/install/source) but instead of cloning and
updating to the release branch update to the latest weekly release. Go 1 is
not far away and I'd recommend using latest weekly as there have been
significant language changes sinece r60.3 release.
hg clone -u weekly https://code.google.com/p/go
Alternativley, instead of starting from the begining you may simply nuke your
install locations and in the source tree do:
$ hg update weekly
$ cd go/src
$ ./all.bash
> I have source code of gocode. And I think I just need to compile it to
> go/bin folder.
When you have built and installed the weekly release, make sure the gocode
source is located in the following directory:
$GOPATH/src/github.com/nsf/gocode
Then build gocode with:
go build -v github.com/nsf/gocode...
Alternatively just grab the latest and install using go get
go get github.com/nsf/gocode
Sorry that should be:
go install -v github.com/nsf/gocode...