鍍金池/ 問答/區(qū)塊鏈  iOS  網(wǎng)絡(luò)安全/ Mac golang vscode Fabric測(cè)試用例debug。 運(yùn)行mai

Mac golang vscode Fabric測(cè)試用例debug。 運(yùn)行main函數(shù) 找不到ltdl.h

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.

回答
編輯回答
只愛你

ubuntu

# apt install libltdl3-dev
## 正確安裝后繼續(xù)執(zhí)行
# make configtxlator

centos

# yum libtool libtool-ltdl-devel
## 正確安裝后繼續(xù)執(zhí)行
# make configtxlator
2018年5月18日 13:12
編輯回答
愛礙唉

MAC系統(tǒng)
安裝libtool就可以了,步驟如下:
先安裝brew類似于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

2018年6月19日 07:52