我使用的是Windows10。当我试图构建链码时,它报告了以下错误
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 exec: "gcc": executable file not found in %PATH%
我的链码进口:
import ( "fmt" "strconv" "github.com/hyperledger/fabric/core/chaincode/shim" pb "github.com/hyperledger/fabric/protos/peer" )
它在Docker中运行得很好。
发布于 2021-05-05 08:32:00
就我的情况而言: os: windows 10
命令:
choco install mingw
安装巧克力如果没有安装:链接:https://www.liquidweb.com/kb/how-to-install-chocolatey-on-windows/
为我工作过。
https://stackoverflow.com/questions/43580131
相似问题