I am a go newbie.
I have installed golang 1.9 from the official binary distribution on my ubuntu. I have also installed the Gogland IDE.
When I try to debug the simplest go program ("hello world") using Gogland, I get the following error:
GOROOT=/usr/local/go
GOPATH=/home/user/go
/usr/local/go/bin/go build -i -o /tmp/defaultgo -gcflags "-N -l" -a /home/user/go/src/hello/hello.go
go install runtime/internal/sys: open /usr/local/go/pkg/linux_amd64/runtime/internal/sys.a: permission denied
When trying to build from the command line (not using Gogland), I noticed that I get the same error whenever I am using the -i -a
switches.