Skip to content

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

Closed Answered by buffalojoec
jsoneaday asked this question in Q&A
Discussion options

You must be logged in to vote

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 rustc version when you run one of the build commands (ie. cargo build-sbf).

Try upgrading your CLI

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@buffalojoec
Comment options

Answer selected by jsoneaday
@jsoneaday
Comment options

@buffalojoec
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants