OS X 下载编译bitcoin源代码

1. OS X 编译源代码

最近对区块链技术非常感兴趣,非常向理解这个创造了很多奇迹并且持续创造更多奇迹的技术面貌。它是如何实现安全保证的,是如何保障交易进行的,它对未来的世界会带来什么样的改变。

做了多年的工程师,第一个习惯就是下载源代码,然后编译。

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

如果没有按装Xcode和Brew, 先安装:

xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
接着安装依赖库:

brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3
下载源代码:

git clone https://github.com/bitcoin/bitcoin
cd bitcoin
./autogen.sh
./configure
make
make check
make install

你可能感兴趣的:(block,chain)