Mac golang vscode Fabric test case debug. Ltdl.h could not be found by running the main function

< H1 > github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 < / H1 >

.. / work/src/github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11/pkcs11.go:26:10: fatal error: "ltdl.h" file not found

< H1 > include < ltdl.h > < / H1 >
     ^~~~~~~~

1 error generated.

Mar.02,2021

< H1 > ubuntu < / H1 >
-sharp apt install libltdl3-dev
-sharp-sharp 
-sharp make configtxlator
< H1 > centos < / H1 >
-sharp yum libtool libtool-ltdl-devel
-sharp-sharp 
-sharp make configtxlator

MAC system
install libtool. The steps are as follows:
install brew first, similar to apt-get
wget http://ftpmirror.gnu.org/libt.
tar-zxvf libtool-2.4.6.tar
cd libtool-2.4.6
brew install automake
. / configure-- prefix=/usr
sudo make & & sudo make install

Menu