不到萬不得已,不要使用任何非官方來源4尥俊Q羝!
一、準備:Xcode最新(App Store)缭保、Github for Mac(https://desktop.github.com)汛闸、Homebrew(http://brew.sh)
二、安裝:
1艺骂、brew install boost miniupnpc openssl berkeley-db4 autoconf automake libtool
提示Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
先執(zhí)行sudo xcodebuild -license
再執(zhí)行上面的brew命令即可诸老;
2、
cd
git clone https://github.com/miguelfreitas/twister-core.git
cd twister-core
./autotool.sh
./configure --enable-logging --with-openssl=/usr/local/opt/openssl --with-libdb=/usr/local/opt/berkeley-db4
make -j N
//N等于CPU內(nèi)核數(shù)钳恕,如果報錯需要先make clean再重新嘗試
3别伏、make完畢后在當前目錄下執(zhí)行 ./twisterd ,這里主要是看要求放twister.conf文件的路徑和底下的是否一致忧额,如果一致就直接執(zhí)行下面的命令厘肮,不一致自己把目錄改改,如果提示沒有twister.conf文件就自己創(chuàng)建一個睦番。
echo -e "rpcuser=user\nrpcpassword=pwd\nrpcallowip=127.0.0.1" > "/Users/${USER}/Library/Application\ Support/twister/twister.conf"
chmod 600 "/Users/${USER}/Library/Application\ Support/twister/twister.conf"
以上完成后再執(zhí)行./twisterd轴脐,應(yīng)該沒有反饋信息,這時候是在更新區(qū)塊抡砂,慢慢等大咱,也可以開新終端執(zhí)行下一步。
4注益、git clone https://github.com/miguelfreitas/twister-html.git /Users/${USER}/Library/Application\ Support/twister/html
這時用瀏覽器打開http://localhost:28332/home.html碴巾,就可以看到區(qū)塊更新的進度了。