在Hyperledger架构中使对等节点失败

时间:2018-06-26 05:38:04

标签: hyperledger-fabric

我正在Ubuntu系统上使用go版本1.6。当我尝试创建对等体时,出现以下错误。 $成为同伴

.build/bin/peer
CGO_CFLAGS=" " GOBIN=/opt/gopath/src/github.com/hyperledger/fabric/.build/bin go install -tags "experimental" -ldflags "-X github.com/hyperledger/fabric/common/metadata.Version=1.2.0 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=9acd9cd -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.4.8 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hyperledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger -X github.com/hyperledger/fabric/common/metadata.BaseDockerNamespace=hyperledger -X github.com/hyperledger/fabric/common/metadata.Experimental=true" github.com/hyperledger/fabric/peer
vendor/github.com/fsouza/go-dockerclient/client_unix.go:10:2: cannot find package "context" in any of:
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/context (vendor tree)
    /usr/lib/go-1.6/src/context (from $GOROOT)
    /opt/gopath/src/context (from $GOPATH)
bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of:
    /opt/gopath/src/github.com/hyperledger/fabric/vendor/plugin (vendor tree)
    /usr/lib/go-1.6/src/plugin (from $GOROOT)
    /opt/gopath/src/plugin (from $GOPATH)
Makefile:256: recipe for target '.build/bin/peer' failed
make: *** [.build/bin/peer] Error 1

1 个答案:

答案 0 :(得分:2)

请使用golang 1.10,通常请参见prerequisites页。