前言
我不懂區塊鏈,只是個使用者,文章內容純屬剽竊。
前前言
我的開發環境:
BitShares官方站
下載-編譯-安裝-運行
我沒有按照github (英)主頁上的編譯,而參考 wiki-macos頁面編譯的。
- 安裝 XCode 和 command line tools https://guide.macports.org/#installing.xcode. 在 OS X 10.11 (El Capitan) 與以上的版本,在終端中運行開發人員命令時,系統將提示您安裝開發人員工具,這一步可省掉.
- 安裝 boost:
brew search boost
brew install [email protected]
- 更新 openssl:
brew upgrade openssl
- 運行以下命令
#Initialize Homebrew:
brew doctor
brew update
brew install boost cmake git openssl autoconf automake libtool
brew link --force openssl
#Install dependencies:
brew install boost cmake git openssl autoconf automake libtool
brew link --force openssl
#Clone the Bitshares repository:
git clone https://github.com/bitshares/bitshares-core.git
cd bitshares-core
#Build BitShares:
git submodule update --init --recursive
- 如果裝了 boost 直接運行(指定使用 boost1.60版本)
cmake -DBOOST_ROOT=/usr/local/opt/[email protected] -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .
- 最後一步:
make
後記:剽竊的文章如下:
https://github.com/bitshares/bitshares-core/wiki/Building-on-OS-X
沒了。。。。。。
不用打賞,吃不起土,我可以光合作用。