• 2
  • 新人请关照

安装链码时为什么报了can not find package 的错

安装链码失败: installing chaincode failed: Multiple errors occurred: - Transaction processing for endorser [localhost:7051]: Chaincode status Code: (500) UNKNOWN. Description: could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "/chaincode/input/src/github.com/kongyixueyuan.com/kongyixueyuan/chaincode/main.go:6:2: cannot find package "github.com/hyperledger/fabric-chaincode-go/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOROOT) /chaincode/input/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOPATH) /go/src/github.com/hyperledger/fabric-chaincode-go/shim /chaincode/input/src/github.com/kongyixueyuan.com/kongyixueyuan/chaincode/main.go:7:2: cannot find package "github.com/hyperledger/fabric-protos-go/peer" in any of: /usr/local/go/src/github.com/hyperledger/fabric-protos-go/peer (from $GOROOT) /chaincode/input/src/github.com/hyperledger/fabric-protos-go/peer (from $GOPATH) /go/src/github.com/hyperledger/fabric-protos-go/peer " - Transaction processing for endorser [localhost:7151]: Chaincode status Code: (500) UNKNOWN. Description: could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "/chaincode/input/src/github.com/kongyixueyuan.com/kongyixueyuan/chaincode/main.go:6:2: cannot find package "github.com/hyperledger/fabric-chaincode-go/shim" in any of: /usr/local/go/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOROOT) /chaincode/input/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOPATH) /go/src/github.com/hyperledger/fabric-chaincode-go/shim /chaincode/input/src/github.com/kongyixueyuan.com/kongyixueyuan/chaincode/main.go:7:2: cannot find package "github.com/hyperledger/fabric-protos-go/peer" in any of: /usr/local/go/src/github.com/hyperledger/fabric-protos-go/peer (from $GOROOT) /chaincode/input/src/github.com/hyperledger/fabric-protos-go/peer (from $GOPATH) /go/src/github.com/hyperledger/fabric-protos-go/peer

阅读 192
评论
    0 个回答
    撰写回答

    登录后参与交流、获取后续更新提醒

    相似问题
    推荐文章