我使用锚点构建一个项目,当我使用
anchor build
时它会给出错误
package `solana-program v1.18.8` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.72.0-dev
Either upgrade to rustc 1.75.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `solana-program` supporting rustc 1.72.0-dev
但是 rustc v 是 1.77.0 和 solana-cli 1.18.1 我不知道为什么以及何时使用
cargo-build-sbf --version
它显示
solana-cargo-build-sbf 1.18.1
platform-tools v1.39
rustc 1.72.0
我也更新了
rustup toolchain
但又做不到
谁能帮帮我吗
当我尝试安装时
cargo install solana-cargo-build-sbf --force
但它给了
Updating crates.io index
error: could not find `solana-cargo-build-sbf` in registry `crates-io` with version `=1.19.0