thanks for this information.
On Sunday, September 14, 2014 at 10:00:09 PM UTC+3 Péter Szilágyi wrote: > Hi, > > Leave GOROOT alone. It should either be unset, or set to the > installation folder (correct in your case). On the other hand, the GOPATH > should *not* point to the Go installation, but rather to your workspace > (see https://golang.org/doc/code.html#GOPATH). Whenever you install some > package with go get or go install, it will land within the GOPATH. That is > why it warns you, that you most definitely do *not* want random packages > from the internet to be dumped into your official installation. > > Create one or more folders where you'd like to develop Go code and set > those as your GOPATH (note, if multiple are set, then go get will pull and > install packages into the first). > > Cheers, > Peter > > On Sun, Sep 14, 2014 at 9:43 PM, <empt...@gmail.com> wrote: > >> Hi, >> >> I have extracted this file (go1.3.1.linux-amd64.tar.gz) to /usr/local. >> >> I have added only these environment variables to .bashrc >> >> export GOPATH=/usr/local/go >> export PATH=$PATH:$GOPATH/bin >> >> When I type go version or any go command, I receive: >> >> warning: GOPATH set to GOROOT (/usr/local/go) has no effect >> >> When I type: >> >> go env >> >> I am informed >> >> ... >> GOROOT="/usr/local/go" >> ... >> >> Can anyone tell me how this GOROOT env is being set and how I can unset >> it? >> >> Many Thanks >> >> Aidy >> >> >> >> >> >> >> >> -- >> 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...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5a790157-61b5-4d70-b6ae-90f0e39a3bb3n%40googlegroups.com.