Setup:
Have a look at my configuration:
$ echo $GOPATH && ls -r $GOPATH /home/cyrus/.go src pkg bin $ echo $GOROOT &&
First do a `go env' and check the path GOROOT. Accordingly set the GOPATH. In my case, it had to set GOPATH to /usr/lib/go. Earlier i tried it with /usr/share/go and /usr/bin/go but it didn't work.