Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu install errors #16

Closed
sweetcheeks24 opened this issue Apr 30, 2014 · 4 comments
Closed

Ubuntu install errors #16

sweetcheeks24 opened this issue Apr 30, 2014 · 4 comments

Comments

@sweetcheeks24
Copy link

Perhaps this is known, but when trying to install on Ubuntu I got the following:

github.com/zenazn/goji/graceful

/usr/lib/go/src/pkg/github.com/zenazn/goji/graceful/middleware.go:38: undefined: http.CloseNotifier
/usr/lib/go/src/pkg/github.com/zenazn/goji/graceful/middleware.go:93: undefined: http.CloseNotifier
/usr/lib/go/src/pkg/github.com/zenazn/goji/graceful/middleware.go:118: undefined: http.CloseNotifier
/usr/lib/go/src/pkg/github.com/zenazn/goji/graceful/signal.go:50: undefined: signal.Stop

github.com/zenazn/goji/web

/usr/lib/go/src/pkg/github.com/zenazn/goji/web/middleware.go:198: syntax error: unexpected :, expecting ]

@elithrar
Copy link
Contributor

Can you post the output of go env (correction: go version) - specifically your version? Anything but the most recent versions of Ubuntu (14.04) have shipped with Go 1.1.x.

(Goji requires Go >= 1.2 - you can use gvm or godeb to install it on Ubuntu easily)

@sweetcheeks24
Copy link
Author

$ go env
GOROOT="/usr/lib/go"
GOBIN=""
GOARCH="amd64"
GOCHAR="6"
GOOS="linux"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CGO_ENABLED="1"

@zenazn
Copy link
Owner

zenazn commented May 1, 2014

Yeah, you aren't running Go 1.2—the syntax that you're getting a syntax error for was introduced in Go 1.2.

@sweetcheeks24
Copy link
Author

Perfect, thank you. Updating now.

@zenazn zenazn closed this as completed May 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants