macos - 在 m1 MAC OS 上构建 Bitcoind 时出错
问题描述
因此,我试图通过遵循为 OS X 构建 bitcoind 的文档在我的 m1 mac 中的 big sur 上构建 bitcoind:https ://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md和每次尝试构建时,我都会遇到相同的错误。以下是我采取的步骤:
brew install autoconf automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf qt5
cd比特币
./autogen.sh
./configure --with-gui=no
配置后,我收到以下消息:
检查 boostlib >= 1.58.0 (105800)... 配置:我们无法检测到 boost 库(版本 1.58.0 或更高版本)。如果您有分阶段的 boost 库(仍未安装),请在您的环境中指定 $BOOST_ROOT 并且不要将 PATH 提供给 --with-boost 选项。如果你确定你已经安装了 boost,那么在 <boost/version.hpp> 中检查你的版本号。有关更多文档,请参见http://randspringer.de/boost。
我不明白为什么它没有检测到图书馆......
谁能帮我吗?
解决方案
我有同样的问题,我是这样解决的:
cd depends/
make
# After completing this step, you will see one new folder (arm-apple-darwin20.4.0) in /bitcoin/depends. The version number may change
# Go back to bitcoin folder
cd ..
# Set up the compilation tool
./configure --with-gui=no --prefix=$PWD/depends/arm-apple-darwin20.4.0
# change the version ...darwin20.x.x with what you have in depends directory
# Start to compile bitcoin
make HOST=arm-apple-darwin20
make check
您可以在 src 目录中看到 bitcoind 二进制文件。享受 :)
来源: https ://gist.github.com/awesome-doge/9bfbd1d3fd9b725c4df224433fa3596e
推荐阅读
- node.js - 我似乎无法将 BlockDecoder 导入我的打字稿项目
- python - 即使 pip 在本地计算机上更新,setuptools 也会搜索旧的 pypi 存储库
- python - 尝试在 pycharm 中升级后无法识别“pip”
- mysql - MySQL有条件地根据某行列的总和进行选择
- laravel - 你可以使用带有 php date() 的 Laravel ::get 语句将日期编号转换为日期名称吗?
- azure-pipelines - 找不到测试时,Azure DevOps 管道 .NET Core CLI 测试任务失败
- datatable - 如何创建 Power BI DAX 公式?
- java - Opensaml- HTTPPostEncoder encoder.encode() - 发送响应和重定向
- azerothcore - 如何更改团队规模?
- shopify - 选择 3 类隐藏或活动产品中的 5 项