You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks. Whenever I try to npm run anchor build i get a variation of the following error:
error: package solana-program v1.18.26cannot 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 whereveris the latest version ofsolana-program supporting rustc 1.68.0-dev
My rustc versions is latest stable but I've also tried specifying exactly 1.75.0, I've tried upgrading cargo, I've tried downgrading cargo to 0.29.0, I've tried creating a rust-toolchain.toml to force it, i've cleaned and rebuilt over and over again and it just will not work.
If I could find some combination of version numbers for these things that worked I would love to propose a fix but I'm lost at this point. Not being able to build the default app in the documentation is a real pain.
I don't know if it's to do with the fact that it also won't build if the version of the Cargo.lock file is set to 4 and I have to edit that to 3 to get the build to start (this was on 0.30.0)? This error throws before the rust one.
The text was updated successfully, but these errors were encountered:
Hey folks. Whenever I try to
npm run anchor build
i get a variation of the following error:error: package
solana-program v1.18.26cannot 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
veris the latest version of
solana-programsupporting rustc 1.68.0-dev
My rustc versions is latest stable but I've also tried specifying exactly 1.75.0, I've tried upgrading cargo, I've tried downgrading cargo to 0.29.0, I've tried creating a rust-toolchain.toml to force it, i've cleaned and rebuilt over and over again and it just will not work.
If I could find some combination of version numbers for these things that worked I would love to propose a fix but I'm lost at this point. Not being able to build the default app in the documentation is a real pain.
I don't know if it's to do with the fact that it also won't build if the version of the Cargo.lock file is set to 4 and I have to edit that to 3 to get the build to start (this was on 0.30.0)? This error throws before the rust one.
The text was updated successfully, but these errors were encountered: