Go 在macos上构建锯齿形事务处理器时发生生成错误

Go 在macos上构建锯齿形事务处理器时发生生成错误,go,hyperledger-sawtooth,Go,Hyperledger Sawtooth,我正在尝试在macos上构建锯齿事务处理器。事务处理器是用golang编写的。当我执行go build时,它抛出以下错误: go build # github.com/hyperledger/sawtooth-sdk-go/signing ld: library not found for -lcrypto clang: error: linker command failed with exit code 1 (use -v to see invocation) 请注意,openssl已安装

我正在尝试在macos上构建锯齿事务处理器。事务处理器是用golang编写的。当我执行
go build
时,它抛出以下错误:

go build
# github.com/hyperledger/sawtooth-sdk-go/signing
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请注意,
openssl
已安装


任何建议/评论都会非常有用。

执行以下两个命令可以解决此问题:

ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib
ln -s /usr/local/opt/openssl/lib/libcrypto.a /usr/local/lib

所以问题是您安装了openssl的本地副本,而不是从包中安装的副本。你应该提到这一点。