❯ anchor build
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.com/cli/install to install a newer version.
bytemuck_derive@1.9.2 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
很幽默了全是最新版本也装不上,rustc他自己用的自己的虚拟环境,怎么解决呢
❯ cargo update -p bytemuck_derive –precise 1.8.1
Updating crates.io index
好了,问题解决。不嘻嘻
![图片[1]-幽默anchor rustc版本低下对不上bytemuck_derive导致无法build-魔法少女雪殇](https://www.snowywar.top/wp-content/uploads/2025/03/image-2.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容