1. MacOsX 下编译源代码

1. 下载源代码

git clone https://github.com/bitcoin/bitcoin.git

2. 如果没有安装Xcode和Brew,需要安装

xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

3. 安装依赖库

brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3

4. 终端命令行执行

git clone https://github.com/bitcoin/bitcoin

cd bitcoin

./autogen.sh
./configure

make
make check
make install