ltdl.h Not found error while building chaincode

surender picture surender · Apr 26, 2017 · Viewed 9.6k times · Source

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.g‌​o: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

Answer

Denis Glotov picture Denis Glotov · May 11, 2017

It worked for me on ubuntu: sudo apt install libltdl-dev