英文:
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: "gcc": 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论