$ go version
go version go1.13 darwin/amd64
GOROOT=/usr/local/Cellar/go/1.13/libexec
export GOROOT
export GOPATH=/Users/y50/mygo
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN:$GOROOT/bin
$ cd $GOPATH
$ ls
bin pkg src
$ rustc --version
rustc 1.37.0 (eae3437df 2019-08-13)
$ cargo --version
cargo 1.37.0 (9edd08916 2019-08-02)
$ brew search pkg-config
$ brew install pkg-config
$ brew install gcc
$ brew search jq
$ brew install jq
$ mkdir -p ${GOPATH}/src/github.com/filecoin-project
$ git clone https://github.com/filecoin-project/go-filecoin.git ${GOPATH}/src/github.com/filecoin-project/go-filecoin
$ pwd
/Users/y50/mygo/src/github.com/filecoin-project/go-filecoin
$ git submodule update --init --recursive
$ cd ${GOPATH}/src/github.com/filecoin-project/go-filecoin
$ FILECOIN_USE_PRECOMPILED_RUST_PROOFS=true go run ./build deps
$ FILECOIN_USE_PRECOMPILED_RUST_PROOFS=true go run ./build deps
go: cloud.google.com/[email protected]: Get https://proxy.golang.org/cloud.google.com/go/@v/v0.43.0.mod: dial tcp [2404:6800:4008:803::2011]:443: i/o timeout
$ FILECOIN_USE_PRECOMPILED_RUST_PROOFS=true go run ./build deps
go: github.com/go-critic/[email protected]: invalid pseudo-version: does not match version-control timestamp (2019-02-10T22:04:43Z)
filecoin-0.5.6-Darwin.tar.gz
$ cd ~
$ ls -lah | grep filecoin
$ rm -rf ~/.filecoi*
tar -zxvf filecoin-0.5.6-Darwin.tar.gz -C ~
$ echo 'export PATH="/Users/y50/filecoin":$PATH' >> ~/.bash_profile
$ source ~/.bash_profile
$ mkdir -p /var/tmp/filecoin-proof-parameters
$ ./paramcache
go-filecoin init --devnet-user --genesisfile=https://genesis.user.kittyhawk.wtf/genesis.car
$ touch filecoin_autoStart.sh
$ chmod 777 filecoin_autoStart.sh
$ cat filecoin_autoStart.sh
#!/bin/bash
# filecoin 开机运行节点
go-filecoin daemon >> /Users/y50/filecoin/filecoin.log 2>&1 &
go-filecoin id
$ curl -X POST -F "target=$(go-filecoin address ls)" "http://user.kittyhawk.wtf:9797/tap"
参考: