GithubHelp home page GithubHelp logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
You need to set up a workspace (GOPATH) into which the tour will be installed. 
See this doc: http://golang.org/doc/code.html

Original comment by [email protected] on 24 May 2012 at 11:15

  • Changed title: point people toward 'how to write go code' when installing for the first time
  • Changed state: Accepted

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Ah, hey, thanks. So, read the recommended page. Set GOPATH=/usr/local/go,
then tried the "go get" again and got the same permission denied. used
"sudo" to mkdir the place, and then permission denied for wherever /p/ so
used sudo again for that one, then got this:

# cd .; hg clone -U https://code.google.com/p/go-tour /usr/local/go/src/pkg/
code.google.com/p/go-tour
warning: code.google.com certificate with fingerprint
8e:ab:3a:93:45:99:6b:95:07:71:7a:c2:1f:68:90:af:78:a9:3c:9a not verified
(check hostfingerprints or web.cacerts config setting)
abort: Permission denied: /usr/local/go/src/pkg/code.google.com/p/go-tour
package code.google.com/p/go-tour/gotour: exit status 255

Original comment by [email protected] on 25 May 2012 at 12:56

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Don't set GOPATH to /usr/local/go

Make a directory in your home directory, like 'gocode', and set it to that

  GOPATH=$HOME/gocode

The overarching problem is that you can't write to /usr/local/go as a regular 
user. That's fine. GOPATH specifies a place you can write to, and that's where 
the tour should be installed to.

Original comment by [email protected] on 25 May 2012 at 12:58

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks, A..., for the personal attention! So unexpected. I have lots of
programming experience, not so much Linux.

Your general advice seems right, but it did not work:

$ echo $HOME
/Users/iangcoville
$ GOPATH=$HOME/gocode
$ go get code.google.com/p/go-tour/gotour
# cd .; hg clone -U https://code.google.com/p/go-tour /usr/local/go/src/pkg/
code.google.com/p/go-tour
warning: code.google.com certificate with fingerprint
8e:ab:3a:93:45:99:6b:95:07:71:7a:c2:1f:68:90:af:78:a9:3c:9a not verified
(check hostfingerprints or web.cacerts config setting)
abort: Permission denied: /usr/local/go/src/pkg/code.google.com/p/go-tour
package code.google.com/p/go-tour/gotour: exit status 255

However, my brother, who is also a programmer, AND a Linux expert,
suggested "sudo chown -R iangcoville /usr/local/go" and then the go get,
and that DID WORK.

After reading your "How to program..." then looking at those error
messages, I have to wonder why it seems to violate the very first rule of
packages, that there be src, pkg, and bin at the *same level* (usr/local/go/
*src/pkg*/code.google.com/p/go-tour)?

Yours,
Ian

Original comment by [email protected] on 25 May 2012 at 8:02

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
So anyway, now that the gotour is installed, I drilled down to  
/usr/local/go/src/pkg/code.google.com/p/go-tour/gotour and found two files: 
goplay.go and local.go. Running goplay.go gave me an "are you crazy?" -type 
message, local.go gave me a date and time and an invitation to browse to 
127.0.0.1:3999 which I did and there it is, the tutorial!

However, when I try to RUN anything, I get a red letter warning "Error 
communicating with remote server". What gives?

Original comment by [email protected] on 25 May 2012 at 2:32

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Do you see anything in the console (where you ran gotour) when this happens?

Original comment by [email protected] on 30 May 2012 at 3:07

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Nope. Still the invitation to "browse 127.0.0.1" etc.

Original comment by [email protected] on 30 May 2012 at 1:41

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I was having the exact problems described here, but this worked for me: 
http://www.moncefbelyamani.com/how-to-install-the-go-tour-on-your-mac/

Original comment by [email protected] on 14 Aug 2012 at 12:48

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Everyone should read at least http://golang.org/doc/code.html#GOPATH

Original comment by [email protected] on 28 Jan 2013 at 7:17

from go-tour.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 29 Jan 2013 at 5:47

  • Changed title: go-tour: when suggesting users "go offline", give full instructions

from go-tour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.