Ltdl.h No error found while creating chain

I am trying to create chained code using go build

. when i ran 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 one. But I am getting the same error

+3


source to share


5 answers


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



+10


source


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



yum install libtool-ltdl-devel

      

+5


source


be 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 chained code if you are developing and testing your code.

+2


source


In Debian / Ubuntu environment try the following command:

sudo apt install libtool libltdl-dev

+2


source


For Mac, make sure you have brew installed. This command worked for me:

brew install libtool

      

+1


source







All Articles