Quoth Nada Saif: > The go command works, but when I try to build any golang code, it gives me : > [image: go-err.png] > > I downloaded go1.12 linux/amd64 and extracted it to /usr/local/ > I also added these to .bashrc > export GOPATH = $HOME/go > export PATH=$PATH:$GOPATH/bin > export also PATH=$PATH:/usr/local/go/bin
Hi Nada, it looks like you messed things up using sudo, running the go tool with elevated permissions at some point. You don't need to use 'sudo' to run 'go build' in normal use. You can get rid of the incorrect cache with this command: $ sudo rm -rf /home/nada/.cache/go-build Then you should be able to build your project with a simple: $ go build No sudo needed. Hope this gets you on your way :) Nick -- 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. For more options, visit https://groups.google.com/d/optout.