我正在尝试使用go build构建一个链码。
环境:
当我运行go build时,会得到以下错误:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.我检查了,我的GCC安装不包含包含文件夹中的ltdl.h文件。
我找到了一个带有solution for Linux的SO,但没有一个用于Windows。
有人能帮忙吗?
发布于 2017-08-08 08:51:54
在没有PKCS的窗口上可以构建
go build --tags nopkcs11
发布于 2018-05-10 09:40:04
尝试运行以下命令
sudo apt install libtool libltdl-dev确保go get -u github.com/hyperledger/fabric/core/chaincode/shim没有抛出错误,然后go build它。
https://stackoverflow.com/questions/45563414
复制相似问题