2.2 Install Prerequisites
Install the Prerequisites
Install Git: bit.ly/start-git
Install Rust: bit.ly/start-rust
Install required system dependancies
# install required system packages
sudo apt install \\
build-essential \\
curl \\
clang \\
gcc \\
libssl-dev \\
llvm \\
make \\
pkg-config \\
tmux \\
xz-utils
Install and Configure Rust
# as snarkosadm
sudo -i -u snarkosadm
# using Rustup from the script, per rustup instructions
curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh -s -- -y
# source rust config to current shell, or logout and back in
source ${HOME}/.cargo/env
# quick checks to make sure rust installed correctly
cargo --version
rustc --version
Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Download and install Node.js:
nvm install 20
# Verify the Node.js version:
node -v # Should print "v20.18.2".
nvm current # Should print "v20.18.2".
# Verify npm version:
npm -v # Should print "10.8.2".
Last updated