我使用的是Windows 10。当我尝试构建Chaincode时,它报告了这个错误。
# 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中正常运行。
"gcc": executable file not found
。这应该是你第一个提示,表明需要但未找到 "gcc"。 - Jonathan Hall