Installation

This section details how to compile and install Boost if you are a storage provider or a client

The Boost source code repository is hosted at github.com/filecoin-project/boost

Boost and Lotus compatibility matrix

Boost VersionLotus VersionGolang Version

< v2.0.0

v2.0.0

v1.23.x

1.20.x

v2.1.0, v2.1.1, v2.1.2

v1.24.x, v1.25.x

1.20.x

v2.2.0

v1.26.0, v1.26.1

1.21.7

Building and Installing

Prerequisites

Please make sure you have installed: Go - following https://go.dev/learn/

Rust - following https://www.rust-lang.org/tools/install

Node 16.x

Linux / Ubuntu

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y

macOS

brew install node@16
brew install bzr jq pkg-config hwloc coreutils

Linux

Depending on your architecture, you will want to export additional environment variables:

export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1
git clone https://github.com/filecoin-project/boost
cd boost
git checkout <stable tag or branch>
make clean build
sudo make install

Please ignore any output or onscreen instruction during the npm build unless there is an error.

macOS

export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
git clone https://github.com/filecoin-project/boost
cd boost
git checkout <stable tag or branch>
make clean build
sudo make install

Please ignore any output or onscreen instruction during the npm build unless there is an error.

Calibration Network

To build boost for calibnet, please complete the above pre-requisites and build using the following commands.

git clone https://github.com/filecoin-project/boost
cd boost
git checkout <stable tag or branch>
make clean calibnet

Last updated