Quantcast
Channel: Active questions tagged rustc - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 37

error: package `solana-program v1.18.1` cannot be built because it requires rustc 1.72.0 or newer

$
0
0

I tried setting up an Anchor project on my MacBook with an ARM processor, but I encountered an error. Here is step by step that i took

% anchor init testprojectOnly x86_64 / Linux distributed in NPM package right now.Trying globally installed anchor.yarn install v1.22.19...testproject initialized% cd testproject % anchor buildOnly x86_64 / Linux distributed in NPM package right now.Trying globally installed anchor.error: package `solana-program v1.18.1` cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.68.0-devEither upgrade to rustc 1.72.0 or newer, or usecargo update -p solana-program@1.18.1 --precise verwhere `ver` is the latest version of `solana-program` supporting rustc 1.68.0-dev

Here is all installed version

% rustup -Vrustup 1.26.0 (5af9b9484 2023-04-05)info: This is the version for the rustup toolchain manager, not the rustc compiler.info: The currently active `rustc` version is `rustc 1.75.0 (82e1608df 2023-12-21)`% rustc -Vrustc 1.75.0 (82e1608df 2023-12-21)% cargo -V cargo 1.75.0 (1d8b05cdd 2023-11-20)% solana -Vsolana-cli 1.16.3 (src:bc7870f3; feat:2891131721, client:SolanaLabs)% anchor -VOnly x86_64 / Linux distributed in NPM package right now.Trying globally installed anchor.anchor-cli 0.29.0

I've tried to init 1.16.3 version for solana-install this post but it doesn't work for me.I also tried to manually update a dependency (toml_edit) to a specific version hoping it would fix the problem, but it wasn't.

cargo update -p toml_edit@0.21.1  --precise 0.21.0

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>