V2
Search
K

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

Building and Installing

Prerequisites

Please make sure you have installed: Go - following https://go.dev/learn/
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