gpt4 book ai didi

Rust solana 构建错误 : no such subcommand: +bpf

转载 作者:行者123 更新时间:2023-12-04 12:28:29 25 4
gpt4 key购买 nike

关闭。这个问题需要debugging details .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

3个月前关闭。




Improve this question




我是 solana 和 rust 的新手,最近我从这个仓库安装了他们的 example-helloworld-https://github.com/solana-labs/example-helloworld .
每当我尝试使用 npm 脚本构建 rust 程序或进入 rust 程序目录手动运行 cargo build-bpf 时,它都会说 - 没有这样的子命令:+bpf。 terminal error image
我也试过命令 which cargo-build-bpf ,它没有错误。
但是我也尝试使用cargo build 手动构建,它会引发错误。

最佳答案

您的 Rust 版本可能已过时,您可以尝试更新到 Rust 1.53 吗?您应该可以使用以下方法获取它:

rustup toolchain add 1.53
然后,您可能需要按照以下说明重新安装 Solana 工具套件: https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool

关于Rust solana 构建错误 : no such subcommand: +bpf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68599747/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com