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
Hi, Everyone. I have one issue while using anchor project.
I am a fresher of Solana project and now I am using the documentations.
Recently, I create the new anchor project using anchor init nftminting and run the anchor build command.
But this error is occured: error: package solana-program v1.18.1cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.68.0-dev Either upgrade to rustc 1.72.0 or newer, or use cargo update -p solana-program@1.18.1 --precise ver whereveris the latest version ofsolana-program supporting rustc 1.68.0-dev
So I checked the my rustc version.
When I run the command rustc --version, the result is rustc 1.75.0 (82e1608df 2023-12-21).
Now I am using anchor-cli 0.29.0.
So this means now I am using rustc 1.75.0.
What is the reason and How to fix it? Hope your kind answers. Thanks for your kind time
The text was updated successfully, but these errors were encountered:
Hi, Thanks for your kind effort. I have a similar issue now, I dont know how to fix that. I cannot get answer from google.
Here is the error message.
error: package toml_edit v0.21.1cannot be built because it requires rustc 1.69 or newer, while the currently active rustc version is 1.68.0-dev Either upgrade to rustc 1.69 or newer, or use cargo update -p toml_edit@0.21.1 --precise ver whereveris the latest version oftoml_editsupporting rustc 1.68.0-dev
In the last case, I fixed the issue by solana-install init 1.18.1. But in this case, I cannot fix it.
What is the reason and how to fix it? Hope your kind answers.
I solved the problem.
Use this command.
cargo update -p solana-program --precise 1.17.17
My rustc version rustc 1.76.0
My solana version solana-cli 1.17.27
my anchor version 0.29.0
Good luck to you.
Hi, Everyone. I have one issue while using anchor project.
I am a fresher of Solana project and now I am using the documentations.
Recently, I create the new anchor project using
anchor init nftminting
and run theanchor build
command.But this error is occured:
error: package
solana-program v1.18.1cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.68.0-dev Either upgrade to rustc 1.72.0 or newer, or use cargo update -p solana-program@1.18.1 --precise ver where
veris the latest version of
solana-programsupporting rustc 1.68.0-dev
So I checked the my rustc version.
When I run the command
rustc --version
, the result isrustc 1.75.0 (82e1608df 2023-12-21)
.Now I am using
anchor-cli 0.29.0
.So this means now I am using rustc 1.75.0.
What is the reason and How to fix it? Hope your kind answers. Thanks for your kind time
The text was updated successfully, but these errors were encountered: