源码安装 go-filecoin 0.5.8

  • 安装go
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
  • go 环境配置
# mkdir ~/go
# cd ~/go/
# mkdir bin src pkg
# vim /root/.profile
export GOROOT=/usr/local/go/
export GOPATH=/root/mygo
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin
# source .profile
tar -zxvf go1.13.4.linux-amd64.tar.gz -C /usr/local/
ln -s /usr/local/go/bin/* /usr/bin/
# go version
go version go1.13.4 linux/amd64
  • 安装Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# rustc -V
rustc 1.39.0 (4560ea788 2019-11-04)
  • 安装pkg-config
apt install -y pkg-config
  • 安装gcc
apt install -y gcc
# gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
  • 安装jq
apt install -y jq

-安装git

apt install -y git
  • 下载源码
  • 创建目录
mkdir -p ${GOPATH}/src/github.com/filecoin-project
  • 下载源码
cd ${GOPATH}/src/github.com/filecoin-project/
git clone https://github.com/filecoin-project/go-filecoin.git
git submodule update --init --recursive
# 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)

你可能感兴趣的:(IPFS)