go - 在macOS上构建锯齿事务处理器时出现构建错误
问题描述
我正在尝试在 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
推荐阅读
- r - 使用 rvest 下载 Kaggle 数据集
- excel - 以 .xls 格式保存表格以替代 docmd.sendObject acSendTable
- reactjs - Jest、Enzyme、React、Next.js、Typescript .default 不是构造函数
- typescript - 我们如何在 describe 中使用 async/await?
- kubernetes - 纠正 GKE 集群中的时钟偏差
- c++ - const_cast 是如何工作的?
- javascript - 有没有办法将 js 文件动态加载为 es6 模块?(如 $.getScript)
- facebook-graph-api - 有没有办法判断它是 Instagram 创建者还是企业帐户?
- docker - Kafka Connect S3 - partitioner.class - 找不到 TimeBasedPartitioner
- sql - 降低表值函数的成本 - 查询计划中的 XML 阅读器 - 如何?