Mac跑GoLand报错的解决方案是什么样的

Mac跑GoLand报错的解决方案是什么样的,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

# 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

关于Mac跑GoLand报错的解决方案是什么样的问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注行业资讯频道了解更多相关知识。