Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ltdl.h Not found error while building chaincode

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

like image 992
surender Avatar asked Apr 26 '17 06:04

surender


2 Answers

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

like image 158
Denis Glotov Avatar answered Oct 13 '22 20:10

Denis Glotov


if you are using centos/RHEL 7 you can use this code

yum install libtool-ltdl-devel
like image 32
Marshall Fate Avatar answered Oct 13 '22 18:10

Marshall Fate