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
It worked for me on ubuntu:
sudo apt install libltdl-dev
if you are using centos/RHEL 7 you can use this code
yum install libtool-ltdl-devel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With