Mac跑GoLand報錯解決方案
阿新 • • 發佈:2019-03-08
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
../../../../vendor/github.com/miekg/pkcs11/pkcs11.go:26:10: fatal error: 'ltdl.h' file not found
#include <ltdl.h>
^~~~~~~~
1 error generated.
---------------------------------------------
進入https://brew.sh/index_zh-cn,看到執行命令:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
---------------------------------------------
安裝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 &&a