编译源代码
下载代码
git clone https://github.com/dfuse-io/dfuse-eosio
安装go
wget https://golang.org/dl/go1.15.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
检查go版本
go version
安装yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
GOPATH
由于最后编译安装用到了go install
,所以需要确认下GOPATH
已设置
go env
最终dfuseeos
会生成在$GOPATH/bin
,如果没设置,临时设置下
export GOPATH=/home/当前用户/go/bin
export PATH=$PATH:$GOPATH
安装Go-bindata
go get -u github.com/jteeuwen/go-bindata/...
开始编译
./scripts/build.sh -f -y
安装dfuse定制版本的nodeos
wget https://github.com/dfuse-io/eos/releases/download/v2.0.8-dm-12.0/eosio_2.0.8-dm.12.0-1-ubuntu-18.04_amd64.deb
sudo apt install ./eosio_2.0.8-dm.12.0-1-ubuntu-18.04_amd64.deb
Depends: libicu60 but it is not installable
如果安装时提示此错误,先安装下依赖
echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted" | sudo tee /etc/apt/sources.list
sudo apt update && sudo apt install libicu60
测试dfuseeos
初始化相关配置
./dfuseeos init
启动测试
./dfuseeos start
could not locate box "dashboard-build"
如果出现此错误,
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/1001.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!