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.

Reply via email to