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

Could you specify the required go version in README? #585

Closed
freewind opened this issue Aug 5, 2018 · 1 comment
Closed

Could you specify the required go version in README? #585

freewind opened this issue Aug 5, 2018 · 1 comment

Comments

@freewind
Copy link
Contributor

freewind commented Aug 5, 2018

I run make all after cloning ontology source code, and it reports such error:

make all
go build  -ldflags "-X github.com/ontio/ontology/common/config.Version=v1.0.1"  -o ontology main.go
http/restful/restful/router.go:22:2: cannot find package "context" in any of:
	/root/go/src/github.com/ontio/ontology/vendor/context (vendor tree)
	/usr/lib/go-1.6/src/context (from $GOROOT)
	/root/go/src/context (from $GOPATH)
vendor/golang.org/x/crypto/ripemd160/ripemd160block.go:12:2: cannot find package "math/bits" in any of:
	/root/go/src/github.com/ontio/ontology/vendor/math/bits (vendor tree)
	/usr/lib/go-1.6/src/math/bits (from $GOROOT)
	/root/go/src/math/bits (from $GOPATH)
Makefile:20: recipe for target 'ontology' failed
make: *** [ontology] Error 1

and I found the go version on my ubuntu server is:

$ go version
go version go1.6.2 linux/amd64

looks a little old, but which is the latest version installed by sudo apt-get install golang-go.

Finally, I upgrade go to v1.10 (https://github.com/golang/go/wiki/Ubuntu), it works.

go version go1.10 linux/amd64

I think we could specify the required go version in README

@freewind freewind closed this as completed Aug 5, 2018
@freewind
Copy link
Contributor Author

freewind commented Aug 5, 2018

I found it already in README, sorry

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

1 participant