Mac跑GoLand报错解决方案

2022-10-31 10:56:15

# 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)"

安装brew

---------------------------------------------

安装libtool就可以了,步骤如下:

brew install libtool

转载于:https://my.oschina.net/duojin/blog/3019705

  • 作者:weixin_34235105
  • 原文链接:https://blog.csdn.net/weixin_34235105/article/details/91767380
    更新时间:2022-10-31 10:56:15