无法在窗口上编译结构 - 缺少 ltdl.h
Can't compile fabric on windows - missing ltdl.h
我正在尝试使用go build
构建链码。
环境:
- 已安装 Go 1.8.3 Windows/AMD
- 视窗 10
当我运行go build
时,出现以下错误:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
....github.comhyperledgerfabricvendorgithub.commiekgpkcs11pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
我检查了一下,我的 GCC 安装不包含包含文件夹中的ltdl.h文件。
我找到了一个SO帖子,其中包含Linux的解决方案,但没有Windows解决方案。
有人可以帮忙吗?
在Windows上,您可以在没有PKCS
的情况下构建
go build --tags nopkcs11
尝试运行以下命令
sudo apt install libtool libltdl-dev
确保go get -u github.com/hyperledger/fabric/core/chaincode/shim
没有抛出错误,然后go build
它。
相关文章:
- 函数中堆分配的效果与缺少堆分配的情况
- 缺少类型说明符,显式类型为"缺少错误"
- 在一定长度后从数组中打印时缺少整数
- 使用基类指针创建对象时,缺少派生类析构函数
- 不同的Visual Studio版本中缺少.dll
- 如何修复带有 clang 的参数'args'缺少默认参数的问题?
- 错误"Could not find Boost"(缺少:上下文标头)
- 找不到 FLTK(缺少:FLTK_INCLUDE_DIR)
- 为什么 std::span 缺少 cbegin 和 cend 方法?
- FindPackageHandleStandardArgs.cmake:137 的 CMake 错误(消息):找不到 Boost (缺少:正则表达式)(找到合适的版本"1.72.0",
- MSYS2 MinGW程序包中缺少grpc_cpp_plugin协议
- CLANG格式在缺少libtinfo.so.5库中不起作用
- 为什么我会收到错误 C2143 语法错误:缺少"*"之前的';'?
- 奇怪的代码抛出编译错误模板< J,int aSize=10> C2143:语法错误:在"<"之前缺少";"
- gRPC 生成的代码缺少服务实现
- 程序无法启动,因为缺少 libmpc-3.dll
- 在缺少函数重载时抛出异常,并带有 std::variant 而不是编译时错误
- 调试符号中缺少 QObject 类信息(编辑但存在其他 Qt 类)
- 构建 TensorFlow r1.14 C++文件时缺少文件"tensorflow/core/framework/types.pb.h"
- 无法在窗口上编译结构 - 缺少 ltdl.h