macos lotus 安装

1,依赖安装

  • 安装依赖go gcc git bzr jq pkg-config
$ which go
/usr/local/bin/go
$ go version
go version go1.13 darwin/amd64

$ which gcc
/usr/bin/gcc

$ which git
/usr/local/bin/git
$ git version
git version 2.23.0

$ brew search bazaar
==> Formulae
bazaar
$ brew install bazaar
$ bzr --version
Bazaar (bzr) 2.7.0

$ brew install jq
$ jq --version
jq-1.6

$ brew install pkg-config
$ pkg-config --version
0.29.2
  • 安装
cmake
$ git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
$ cd OpenCL-ICD-Loader/
$ mkdir build
$ cd build/

2,编译

  • 需要挂终端代理
$ git clone https://github.com/filecoin-project/lotus.git
$ cd lotus/
$ make
$ sudo make install
Password:
install -C ./lotus /usr/local/bin/lotus
install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner

3,lotus运行

  • 更改目录权限
sudo chown $(whoami):admin /var/log
  • 后台运行守护进程
lotus daemon > /var/log/lotus.log 2>&1 &
$ lotus net peers | wc -l
      34
$ watch lotus sync status
Height: 1977

$ lotus wallet new bls
https://lotus-faucet.kittyhawk.wtf/

在这里插入图片描述

$ lotus wallet balance
500000000
  • mining
$ lotus state pledge-collateral
18596947193119270372

  • error
$ lotus state pledge-collateral
18596947193119270372
$ lotus wallet balance
500000000

4,删除lotus


参考:

  1. filecoin-project/lotus
  2. 安装Lotus在MacOS
  3. KhronosGroup/OpenCL-ICD-Loader
  4. macOS安装CMake
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值