DWQA QuestionsCategory: BlockchainMac golang vscode Fabric test case debug. Ltdl.h could not be found by running main function
17701221591 asked 3 years ago

github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
../../work/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:26:10: fatal error: ‘ltdl.h’ file not found
include <ltdl.h>

     ^~~~~~~~

1 error generated.

2 Answers
zhaoziqian answered 3 years ago

ubuntu

# apt install libltdl3-dev
## Continue after correct installation
# make configtxlator

centos

# yum libtool libtool-ltdl-devel
## Continue after correct installation
# make configtxlator
ulysses answered 3 years ago

MAC system
Installation of libtool is enough. The steps are as follows:
Installing brew first is similar to apt-get
wget http://ftpmirror.gnu.org/libt&#8230;
tar -zxvf libtool-2.4.6.tar
cd libtool-2.4.6
brew install automake
./configure –prefix=/usr
sudo make && sudo make install