Installation
This guide will show how to build, install and update Curio binaries
Debian package installation
Curio packages are available to be installed directly on Ubuntu / Debian systems.
Debain packages are only available for mainnet right now. For any other network like calibration network or devnet, binaries must be built from source.
Install prerequisites\
Enable Curio package repo\
Install Curio binaries based on your GPU. For NVIDIA GPUs:\
For OpenCL GPUs:
Linux Build from source
You can build the Curio executables from source by following these steps.
Software dependencies
You will need the following software installed to install and run Curio.
System-specific
Building Curio requires some system dependencies, usually provided by your distribution.
Arch:
Ubuntu/Debian:
Fedora:
OpenSUSE:
Amazon Linux 2:
Rustup
Curio needs rustup. The easiest way to install it is:
Go
To build Curio, you need a working installation of Go: It needs to be at-least the version specified here.
Example of an OLD version's CLI download:
You’ll need to add /usr/local/go/bin
to your path. For most Linux distributions you can run something like:
See the official Golang installation instructions if you get stuck.
System Configuration
Before you proceed with the installation, you should increase the UDP buffer. You can do this by running the following commands:
Build and install Curio
Once all the dependencies are installed, you can build and install Curio.
Clone the repository:
Switch to the latest stable release branch:
Depending on your CPU model, you will want to export additional environment variables:
If you have an AMD Zen or Intel Ice Lake CPU (or later), enable the use of SHA extensions by adding these two environment variables:\
See the Native Filecoin FFI section for more details about this process.
Some older Intel and AMD processors without the ADX instruction support may panic with illegal instruction errors. To solve this, add the
CGO_CFLAGS
environment variable:\By default, a ‘multicore-sdr’ option is used in the proofs library. This feature is also used in FFI unless explicitly disabled. To disable building with the ‘multicore-sdr’ dependency, set
FFI_USE_MULTICORE_SDR
to0
:\
Build and install Curio: Curio is compiled to operate on a single network. Choose the network you want to join, then run the corresponding command to build the Curio node:
Install Curio:
This will put curio
in /usr/local/bin
. curio
will use the $HOME/.curio
folder by default.
Run curio --version
You should now have Curio installed. You can now finish setting up the Curio node.
Native Filecoin FFI
Some newer CPU architectures like AMD’s Zen and Intel’s Ice Lake have support for SHA extensions. Having these extensions enabled significantly speeds up your Curio node. To make full use of your processor’s capabilities, make sure you set the following variables before building from source:
This method of building does not produce portable binaries. Make sure you run the binary on the same computer as you built it.
MacOS Build from source
You can build the Curio executables from source by following these steps.
Software dependencies
You must have XCode and Homebrew installed to build Curio from source.
XCode Command Line Tools
Curio requires that X-Code CLI tools be installed before building the Curio binaries.
Check if you already have the XCode Command Line Tools installed via the CLI, run:
This should output something like:
If this command returns a path, then you have Xcode already installed! You can move on to installing dependencies with Homebrew. If the above command doesn’t return a path, install Xcode:
Next up is installing Curio’s dependencies using Homebrew.
Homebrew
We recommend that macOS users use Homebrew to install each of the necessary packages.
Use the command brew install
to install the following packages:
Next up is cloning the Lotus repository and building the executables.
Rust
Rustup is an installer for the systems programming language Rust. Run the installer and follow the onscreen prompts. The default installation option should be chosen unless you are familiar with customisation:
Build and install Curio
The installation instructions are different depending on which CPU is in your Mac:
Arm based CPUs
Clone the repository:
Switch to the latest stable release branch:
Create the necessary environment variables to allow Curio to run on Arm architecture:
Build the
curio
binary:Run the final
make
command to move thiscurio
executable to/usr/local/bin
. This allows you to runcurio
from any directory.Run
curio --version
You should now have Curio installed. You can now set up a new Curio cluster or migrating from Lotus-Miner.
Intel CPUs
❗These instructions are for installing Curio on an Intel Mac. If you have an Arm-based CPU, use the Arm-based CPU instructions ↑
Clone the repository:
Switch to the latest stable release branch:
Build and install Curio:
Last updated