Following steps from: https://github.com/decred/dcrd#linuxbsdmacosxposix---build-from-source Code: $ git clone https://github.com/decred/dcrd $GOPATH/src/github.com/decred/dcrd $ cd $GOPATH/src/github.com/decred/dcrd $ glide install Result:
I've just tried on OS X 10.11.6, using: go1.6.2 darwin/amd64 glide 0.11.0-dev and dcrd was compiled with no problems. Which OS do you use?
You are using a glide built with Go 1.5 (where vendoring support has to be manually enabled) so it pulled the wrong dependency version. The easiest fix would be to upgrade to 1.6 or the newly released 1.7.
It worked for me with GO 1.5 some time ago - playing with GOVENDOREXPERIMENT= ?? do not remember. Just tried with golang-1.6.3-1.fc24.x86_64 Code: cd $GOPATH/src/github.com/decred/dcrd git pull ../../../../bin/glide install go build cd $GOPATH/src/github.com/decred/dcrwallet git pull ../../../../bin/glide install go build go build github.com/decred/dcrd/cmd/dcrctl worked just fine
As others have said, you really should update to Go 1.6, or even better Go 1.7 which offers the new SSA backend and related optimizations (which are pretty significant). However, with Go 1.5, you need to set the GOVENDOREXPERIMENT environment variable in order to work with glide vendoring. Code: $ git clone https://github.com/decred/dcrd $GOPATH/src/github.com/decred/dcrd $ cd $GOPATH/src/github.com/decred/dcrd $ export GOVENDOREXPERIMENT=1 # Required for Go 1.5 only -- no need to set for 1.6+ $ glide install EDIT: It was pointed out that the error you're seeing is because glide itself was built without the GOVENDOREXPERIMENT=1 variable set, so you'll need to rebuild glide with it set too.