在使用Docker本地运行链码时遇到问题。

huangapple go评论84阅读模式
英文:

facing issues while running chaincode locally using docker

问题

你在本地系统上运行learn-chaincode示例时遇到了以下错误,请为该错误提供适当的解决方案:

<!-- language: none -->

$ go build
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
exec: "gcc": 在%PATH%中找不到可执行文件
英文:

i m getting below error while running learn-chaincode example on my local system please provide me the suitable solution for the mentioned error

<!-- language: none -->

$ go build
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
exec: &quot;gcc&quot;: executable file not found in %PATH%

答案1

得分: 3

看起来Fabric团队引入了“nopkcs11”标签来绕过这个问题-https://jira.hyperledger.org/browse/FAB-2854

我使用以下命令来构建我的链码:

go build -tags nopkcs11

英文:

Looks like the Fabric team introduced "nopkcs11" tag to bypass the problem - https://jira.hyperledger.org/browse/FAB-2854

I used the following command to build my chain code:

go build -tags nopkcs11

答案2

得分: 0

我的理解是,你正在遵循来自https://github.com/IBM-Blockchain/learn-chaincode的Learn Chaincode示例。请注意,该示例适用于Hyperledger Fabric 0.6版本。

该消息与示例中引用的一个PKCS11包有关。该PKCS包需要gcc编译器才能构建。我建议你获取一个gcc编译器,然后再尝试构建该示例。

英文:

My understanding is that the Learn Chaincode example from https://github.com/IBM-Blockchain/learn-chaincode was being followed. Note that this example is for use with Hyperledger Fabric version 0.6.

The message is related to a PKCS11 package that is referenced by the example. This PKCS package requires a gcc compiler in order to build. I would suggest obtaining a gcc compiler and then trying to build the example again.

huangapple
  • 本文由 发表于 2017年4月10日 17:26:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/43319454.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定