clean reinstall go

I have ubuntu(linux) running on my daughter's pentium2 computer. When the kids want a faster computer for their games and homework, I let them use mine, and I use my daugther's.

I recently decided to play around with fedora on my daughter's pc... didn't like it and had to switch back to ubuntu. To make the long story short, I had to reinstall go. Here's how I did it.

  • download the golang tarball for my 32-bit ubuntu
  • sudo tar -C /usr/local -xzf go1.0.3.linux-286.tar.gz
  • Inside .bashrc, I included these:
    export GOROOT=/usr/local/go
    export PATH=$PATH:/usr/local/go/bin
    export GOOS=linux
    export GOARCH=386
  • create hello.go, then do go run hello.go, and I get hello world

No comments:

Post a Comment