【问题标题】:Getting error while building Bitcoind on m1 MAC OS在 m1 MAC OS 上构建 Bitcoind 时出错
【发布时间】:2021-06-30 17:27:45
【问题描述】:

所以我试图通过遵循为 OS X 构建 bitcoind 的文档在我的 m1 mac 上构建 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

git 克隆https://github.com/bitcoin/bitcoin.git

cd比特币

./autogen.sh

./configure --with-gui=no

配置完成后,我收到以下消息:

检查 boostlib >= 1.58.0 (105800)... 配置:我们无法检测到 boost 库(版本 1.58.0 或更高版本)。如果您有分阶段的 boost 库(仍未安装),请在您的环境中指定 $BOOST_ROOT 并且不要将 PATH 提供给 --with-boost 选项。如果你确定你已经安装了 boost,那么在 中检查你的版本号。有关更多文档,请参阅 http://randspringer.de/boost

我不明白为什么它没有检测到库...

谁能帮帮我?

【问题讨论】:

    标签: macos boost bitcoin apple-m1 bitcoind


    【解决方案1】:

    我遇到了同样的问题,我是这样解决的:

    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

    【讨论】: