Prepare a computer for Substrate development

You can follow the detailed guide from Substrate Developer Hub.โ€‹

1. Install build tools & libraries


# Install Homebrew if necessary
/bin/bash -c "$(curl -fsSL"
# Make sure Homebrew is up-to-date, install openssl
brew update
brew install openssl


sudo apt update
# May prompt for location information
sudo apt install -y git clang curl libssl-dev

Arch Linux

Run these commands from a terminal:

pacman -Syu --needed --noconfirm curl git clang


Run these commands from a terminal:

sudo dnf update
sudo dnf install clang curl git openssl-devel

2. Install Rust toolchain

This guide uses rustup to help manage the Rust toolchain. First, install and configure rustup:

# Install
curl -sSf | sh
# Configure
source ~/.cargo/env

Configure the Rust toolchain to default to the latest stable version, add nightly and the nightly wasm target:

rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly