- Using Anchor Version Manager (AVM) – Recommended: AVM simplifies the process of installing and managing different Anchor versions, making updates easier in the future. We will present this way step by step.
- Without AVM – A more manual method that makes version updates less convenient.
latest
with the version number:
avm use
command to declare which version of the Anchor CLI should be used on your system.
Verify the installation was successful by checking the Anchor CLI version:
Common Errors
- Rust Version Error (
Box<_>
type annotation error): If you encounter the following error during installation:
1.79.0
and try the installation again:
- Permission Denied (Linux/WSL linker error): When installing Anchor CLI on Linux or WSL, you may encounter this error: