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

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

You must be logged in to vote
3 replies
@buffalojoec

Answer selected by jsoneaday
@jsoneaday

@buffalojoec

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