This guide will walk you through setting up your environment for the School of Solana if you prefer not to use the provided Docker image. Follow the steps below to install all the necessary tools and dependencies.
- WSL 2.0 with Ubuntu 20.04 distro or
- standalone Ubuntu 20.04
Tip
Install WSL 2.0 You can check this guide Install WSL 2.0
Update your package list and install the required packages:
sudo apt-get update
sudo apt-get install -y \
curl \
git \
build-essential \
pkg-config \
npm \
vim \
nano \
wget \
Install Rust using the Install Rust
Set the default version:
rustup install 1.79.0
rustup default 1.79.0
Verify the installation:
rustc --version
cargo --version
Install Solana CLI using the Install the Solana CLI
Set the default version:
solana-install init 1.18.18
Verify the installation:
solana --versions
Install Node.js and Yarn for managing JavaScript dependencies:
npm install --global yarn
Install Anchor Framework using the Anchor Installation
Set the default version:
avm install 0.30.1
avm use 0.30.1
Verify the installation:
anchor --version