anchor/docs/src/getting-started/installation.md

978 B

Installing Dependencies

To get started, make sure to setup all the prerequisite tools on your local machine (an installer has not yet been developed).

Install Rust

For an introduction to Rust, see the excellent Rust book.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt

Install Solana

See the solana docs for installation instructions. On macOS and Linux,

sh -c "$(curl -sSfL https://release.solana.com/v1.5.0/install)"

Install Mocha

Program integration tests are run using Mocha.

npm install -g mocha

Install Anchor

For now, we can use Cargo to install the CLI.

cargo install --git https://github.com/project-serum/anchor anchor-cli

To install the JavaScript package.

npm install -g @project-serum/anchor