2017-08-08 27 views
0

我想建立使用go build一个chaincode。不能在Windows编译面料 - 缺少ltdl.h

环境:安装

  • 去1.8.3窗口/ AMD
  • 的Windows 10

当我运行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文件中包括文件夹。

我发现一个SO的帖子有solution for Linux,但没有一个适用于Windows。

有人可以帮忙吗?

回答

3

在Windows下你可以创建一个没有PKCS

go build --tags nopkcs11