Twister简单记录

不到万不得已,不要使用任何非官方来源!!!

一、准备: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

先执行sudo xcodebuild -license

再执行上面的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内核数,如果报错需要先make clean再重新尝试

3、make完毕后在当前目录下执行 ./twisterd ,这里主要是看要求放twister.conf文件的路径和底下的是否一致,如果一致就直接执行下面的命令,不一致自己把目录改改,如果提示没有twister.conf文件就自己创建一个。

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"

以上完成后再执行./twisterd,应该没有反馈信息,这时候是在更新区块,慢慢等,也可以开新终端执行下一步。

4、git clone https://github.com/miguelfreitas/twister-html.git /Users/${USER}/Library/Application\ Support/twister/html

这时用浏览器打开http://localhost:28332/home.html,就可以看到区块更新的进度了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容