I get this error building anchor project: package solana-program v1.16.14 cannot be built because it requires rustc 1.68.0 or newer, while the currently active rustc version is 1.62.0-dev
#2638
|
I am getting this error despite being on rustc 1.72.1. How can I force my project to use 1.68? |
Answered by
buffalojoec
Sep 28, 2023
Replies: 1 comment 3 replies
|
I tried running rustup override set 1.68.0 but same error. When I check the rustc version I see 1.68.0. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, your Solana CLI version is likely a bit older than 1.16, so it likely has an older version of Rust.
Solana CLI attempts to override the active
rustcversion when you run one of the build commands (ie.cargo build-sbf).Try upgrading your CLI