Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anchor build fails with solana-program cannot be built because it requires rustc 1.75.0 or newer #3012

Closed
webberXXII opened this issue Jun 7, 2024 · 1 comment
Labels
compile error Issues related to compile errors lang

Comments

@webberXXII
Copy link

getting this error when trying to build anchor even tho my rustc version is updated

USER:/mnt/c/solana/program$ anchor build
error: package `solana-program v1.18.15` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.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.68.0-dev

solana-cli 1.17.25
rustc 1.78.0
rustup 1.27.1
anchor-cli 0.30.

@acheroncrypto acheroncrypto added lang compile error Issues related to compile errors labels Jun 8, 2024
@acheroncrypto
Copy link
Collaborator

You need to update your solana-cli, you can do so by:

solana-install init 1.18.15

See solana-labs/solana#31428 for an explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile error Issues related to compile errors lang
Projects
None yet
Development

No branches or pull requests

2 participants