aka 'I got the "cannot download, $GOPATH must not be set to $GOROOT." blues'
I think this should be an FAQ, but I can't seem to find the answer. Vexing!
I learn that GOPATH and GOROOT cannot be the same in order to improve the user experience of the Go user.
What about the sysadmin who would like to install one godoc, into the standard directory where Go binaries live?
I tried making a /usr/local/go which is owned by a user which then builds it (it's not the root user, but root has chown'ed the /usr/local/go directory to that user).
I build Go and all users can see go in /usr/local/go/bin (and there was much rejoicing). I then, as the building user, try a "go get code.google.com/p/go.tools/cmd/..." and get the above.
So, I cannot be the only one who would like a system-wide godoc installation. (So as to launch the webserver on start, for instance.)
Any help appreciated
Shell history below.
70 hg clone -u release https://code.google.com/p/go
71 ll go/
72 cd go/src/
74 echo $GOROOT
75 which go
76 go version
77 cd /usr/local/go
79 go get code.google.com/p/go.tools/cmd/...
88 echo $GOPATH
89 cd $GOPATH
91 go get code.google.com/p/go.tools/cmd/...
[builder <at> Jenss-Air go]$ go env
warning: GOPATH set to GOROOT (/usr/local/go) has no effect
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
Key ID 0x09723C12, jensting-wkKmszdrV+9g9hUCZPvPmw@public.gmane.org
Analogue filtering / 5GHz RLAN / Fedora Linux / odds and ends
http://www.tingleff.org/jensting/ +33 9 54 93 68 65
"Great! I'm hearing horses. Parry will be so pleased" Jack, 'The Fisher King'
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.