編譯Filecoin

filecoin 編譯過程中需要下載 proof-params 文件,默認從 IPFS官方網關(https://ipfs.io/ipfs/) 拉取,可通過環境變量IPFS_GATEWAY自定義,見 go-paramfetch

期間還需要從github下載 filecoin-ffi release tarball,見 install-filecoin ,可能會被牆,通過環境變量HTTPS_PROXY設置代理

具體執行命令如下:

git clone https://github.com/filecoin-project/go-filecoin.git
cd go-filecoin
# git checkout $USER_DEVNET_TAG
git submodule update --init --recursive

IPFS_GATEWAY=http://127.0.0.1:8080/ipfs/ HTTPS_PROXY=http://127.0.0.1:8010 go run ./build/main.go deps
IPFS_GATEWAY=http://127.0.0.1:8080/ipfs/ HTTPS_PROXY=http://127.0.0.1:8010 go run ./build/main.go build

Note:127.0.0.1:8080 爲本地 IPFS 網關,127.0.0.1:8010 爲代理服務

編譯的 master 分支,能正常編譯,但無法走完 Filecoin 官方 demo 流程。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章