首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >恐慌:没有为fabric-ca库设置版本。

恐慌:没有为fabric-ca库设置版本。
EN

Stack Overflow用户
提问于 2018-06-29 08:16:18
回答 1查看 148关注 0票数 2

我按照下面的链接安装超级分类账织物ca:

http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#setting-up-multiple-cas

它指定要安装的以下命令:

去找-u github.com/hyperledger/fabric-ca/cmd/.

我有所有的依赖关系:

Go版本: 1.9.6

正确设置GOPATH环境变量

安装了libtool和libtdhl-dev包。

但是,当我本机运行fabric服务器时,我会得到以下错误:

一句话,错误如下所示:

2018/06/29 13:32:20信息配置文件位置: /home/abhinay-trana/crypto-config/peerOrganizations/org1.com/ca/root/fabric-ca-server-config.yaml

恐慌:没有为fabric-ca库设置版本。

戈鲁蒂1号跑

github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x779657,0xc4202d26c0) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60

github.com/hyperledger/fabric-ca/lib.(*Server).init(0xc4202d26c0,0xc4202b5000,0xf6ce32,0xc420165bf0) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/lib/server.go:98 +0x29

github.com/hyperledger/fabric-ca/lib.(*Server).Init(0xc4202d26c0,0xc4202d2600,0x0,0xc420165c50) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/lib/server.go:88 +0x38

主(*ServerCmd) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:102 (0xc42009cd80,0xc4200f7ec0,0x0,0x2,0x0,0x0) .init.func2 +0xfc

github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).execute(0xc42009cd80,0xc4200f7d20,0x2,0x2,0xc42009cd80,0xc4200f7d20) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:643 +0x3e8

github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42009cb40,0xd6f246,0xc420092c30,0xc420092c30) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:734 +0x2fe

github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42009cb40,0xc42011a3c0,0xc420092c30) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/vendor/github.com/spf13/cobra/command.go:692 +0x2b

(*ServerCmd) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/servercmd.go:69 (0xc420092c30,0x4,0x1) .Execute +0x2f

/home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:45 +0xb0 main.RunMain(0xc420094040,0x4,0x4,0xc420165f70,0xd70a0b)

/home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/cmd/fabric-ca-server/main.go:27 +0x45 + main.main()

如何设置fabric ca库的版本?有人能帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-29 10:22:16

以下程序为我解决了这个问题:

错误消息是:'go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60‘。对version.go文件的窥探显示了以下评论:

// Version指定fabric-ca-client/fabric-ca-server版本

//它是由Makefile定义的,并使用by标志传入。

因此,我做了一个go/src/github.com/hyperledger/fabric-ca/。在制作过程中,以下消息被打印到屏幕上:

信息服务器版本:1.1.1-快照-e 656889

制作完成后,当我启动go/src/github.com/hyperledger/fabric-ca/bin中存在的fabric-ca-server时,它就运行得很好!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51097256

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档