~/src/go-statsd-client> echo $GOPATH /Users/me/gopath ~/src/go-statsd-client> echo $GOROOT /usr/local/Cellar/go/1.1.1\\ ~/src/go-statsd-client> go install g
In my case (OS X) it was because I have set GOPATH to /home/username/go (as per the book) instead of /Users/username/go
GOPATH
/home/username/go
/Users/username/go