I am trying to build a chaincode by using go build
. when i run Go build command its reporting
.\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18:
fatal error:ltdl.h: No such file or directory
compilation terminated
I installed libtools from this link. But I am getting the same error
make sure to add --tags nopkcs11 to ur go build or go test command. The error should stop appearing
Example : go build --tags nopkcs11
This will compile your chaincode if you are in development and testing your code.