Gangmax Blog

自由之思想,独立之精神

Install the FileCoin Node: Lotus

From here.

  1. Install the dependencies.
1
2
3
4
# The original package list.
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl
# The actual package list I use which removes the packages already installed.
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev bzr jq
  1. Install go language.

I didn’t use the pacakge from the Golang official website. Instead, I use the Ubuntu pacakge. The reason is that I want to keep the isntallation can be easy reverted.

1
2
3
4
sudo apt-get install golang-1.14
# Create symbolic links.
sudo ln -s /usr/lib/go-1.14/bin/go /usr/local/bin/go
sudo ln -s /usr/lib/go-1.14/bin/gofmt /usr/local/bin/gofmt
  1. Get the source code and compile.
1
2
3
4
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
make clean && make all
sudo make install

Comments