请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

go build bug。。。。

root@zhang-GL502VM:/home/zhang/go/src/github.com/hyperledger/fabric/imocc/application# go build

…/…/vendor/google.golang.org/grpc/connectivity/connectivity.go:46:3: undefined: grpclog.Errorf

…/…/vendor/github.com/hyperledger/fabric-sdk-go/pkg/core/config/config.go:61:28: backend.configViper.MergeInConfig undefined (type *viper.Viper has no field or method MergeInConfig)
…/…/vendor/github.com/hyperledger/fabric-sdk-go/pkg/core/config/config.go:93:27: backend.configViper.MergeConfig undefined (type *viper.Viper has no field or method MergeConfig)
root@zhang-GL502VM:/home/zhang/go/src/github.com/hyperledger/fabric/imocc/application#

老师好,这个grpc我已经安装了,可还是不能通过。。。求解呀。。。

正在回答 回答被采纳积分+3

1回答

提问者 张益达001 2019-05-04 00:43:40

使用了老师的https://git.imooc.com/coding-268/coding-268/src/imooc分支也没能解决。。。

root@zhang-GL502VM:/home/zhang/go/src/github.com/hyperledger/fabric/imocc/application# go build

main.go:10:2: cannot find package "github.com/gin-gonic/gin" in any of:

/usr/local/go/src/github.com/gin-gonic/gin (from $GOROOT)

/root/go/src/github.com/gin-gonic/gin (from $GOPATH)

main.go:11:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/channel" in any of:

/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/channel (from $GOROOT)

/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/channel (from $GOPATH)

main.go:12:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/ledger" in any of:

/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger (from $GOROOT)

/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/ledger (from $GOPATH)

main.go:13:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt" in any of:

/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt (from $GOROOT)

/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt (from $GOPATH)

main.go:14:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/core/config" in any of:

/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/core/config (from $GOROOT)

/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/core/config (from $GOPATH)

main.go:15:2: cannot find package "github.com/hyperledger/fabric-sdk-go/pkg/fabsdk" in any of:

/usr/local/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk (from $GOROOT)

/root/go/src/github.com/hyperledger/fabric-sdk-go/pkg/fabsdk (from $GOPATH)


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信