最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

solana - Getting an error while building anchor first project - Stack Overflow

programmeradmin7浏览0评论
error: rustc 1.79.0-dev is not supported by the following package:

                 Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use `solana-install update` or head over to  to install a newer version.
  [email protected] requires rustc 1.84
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.79.0-dev 

I am getting this error, and I did follow the solana development setup from solana official website.

error: rustc 1.79.0-dev is not supported by the following package:

                 Note that this is the rustc version that ships with Solana tools and not your system's rustc version. Use `solana-install update` or head over to https://docs.solanalabs/cli/install to install a newer version.
  [email protected] requires rustc 1.84
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.79.0-dev 

I am getting this error, and I did follow the solana development setup from solana official website.

Share Improve this question asked Mar 23 at 19:03 AdityaAditya 11 bronze badge
Add a comment  | 

3 Answers 3

Reset to default 2

you can refer these links where they suggest using version 1.8.1.

1] https://github/coral-xyz/anchor/issues/3614#issuecomment-2745025030
2] https://github/coral-xyz/anchor/issues/3606#issuecomment-2738357920

downgrade the bytemuck_derive package from version 1.9.2 to version 1.8.4

cargo update -p [email protected] --precise 1.8.4

@ri-dev answered correctly, you can also patch your Cargo.lock instead:

[[package]]
name = "bytemuck_derive"
version = "1.8.0"
source = "registry+https://github/rust-lang/crates.io-index"
checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec"
dependencies = [
 "proc-macro2",
 "quote",
 "syn 2.0.90",
]
发布评论

评论列表(0)

  1. 暂无评论