I've been working through this example: https://solana.com/developers/guides/getstarted/local-rust-hello-world
Build when I attempt to build using cargo build-bpf I get the following error:
error: package `solana-program v1.18.9` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.72.0-dev
Either upgrade to rustc 1.75.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `solana-program` supporting rustc 1.72.0-dev
Cargo.toml:
[package]
name = "hello_world"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
solana-program = "1.18.9"
solana-sdk = "1.18.9"
And:
rustc --version
rustc 1.77.1 (7cf61ebde 2024-03-27)
rustup --version
rustup 1.27.0 (bbb9276d2 2024-03-08)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.77.1 (7cf61ebde 2024-03-27)`
cargo --version
cargo 1.77.1 (e52e36006 2024-03-26)
cargo-build-sbf --version
solana-cargo-build-sbf 1.18.1
platform-tools v1.39
rustc 1.72.0
I just got my environment setup and not sure what I'm missing..