比特币源码阅读(0.16)(七)

MAC上编译bitcoin

安装 XCode 命令行工具

xcode-select –install

安装Brew,本来想升级一下,但是很长时间没有响应,就重新安装了

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

使用Brew安装第三方工具和库

brew install automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf python qt libevent qrencode

从github下载0.16版本bitcoin,解压到bitcoin目录

https://github.com/bitcoin/bitcoin/tree/0.16

编译代码

新建Terminal窗口,进入上一步创建的bitcoin目录中,执行如下命令,然后长时间的等待
./autogen.sh
./configure
make