That you have to run from sudo level ( I mean from root level). First do like this For ubuntu : sudo -s For other linux distributions like centos,suse : su
Then it will ask for password. Then run your make file/go build. It looks like your make file is trying to use some config files that's why it's asking for authentication. I hope this helps. On Fri, Mar 8, 2019 at 11:37 PM Nada Saif <nada.sa...@gmail.com> wrote: > Thank you! > > On Fri, 8 Mar 2019 at 19:45, Nick <golang-n...@njw.name> wrote: > >> Great. I don't know much about docker, but it looks like you >> probably ran something as sudo that you shouldn't have, again. >> >> Try running this: >> $ sudo chown -R nada:nada /home/nada/.docker >> >> Hopefully then your docker stuff should be sorted out. >> >> Probably worth you reading a bit more about Linux basics, sudo, >> permissions, stuff like that. Plenty to learn, all useful stuff :) >> >> Also, you replied just to me, I'm cc-ing the list again, so the >> answers are in the list archive in case it helps others. >> >> Nick >> >> Quoth Nada Saif: >> > Thank you, now I could build a hello world go program successfully. >> > I still have an issue with setting up a development environment, I am >> using >> > make command. >> > There is some permission issue, please see: >> > [image: x.png] >> > >> > >> > What do you suggest? >> > >> > On Fri, 8 Mar 2019 at 17:31, Nick <golang-n...@njw.name> wrote: >> > >> > > 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. > -- 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.