因此,我跟踪面向SUI初学者的文档,在用sui move build构建文件时,我的Move.toml遇到了一个问题。我得到了以下错误
Failed to verify the Move module, reason: "Sui framework version mismatch detected.
Make sure that you are using a GitHub dep in your Move.toml:[dependencies]
Sui = { git = \"https://github.com/MystenLabs/sui.git\", subdir = \"crates/sui-framework\", rev = \"devnet\" }\n`
If that does not fix the issue, your `sui` binary is likely out of date--try
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui".我知道我的SUI二进制文件可能已经过时了,所以我尝试了cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui
然而,这并没有修复错误,我得到了另一个错误,即
error: could not find `sui` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`我也尝试过运行命令
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch "devnet" sui sui-gateway但是我面临着这个错误
Updating git repository `https://github.com/MystenLabs/sui.git`
error: could not find `sui` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`
Updating git repository `https://github.com/MystenLabs/sui.git`
error: could not find `sui-gateway` in https://github.com/MystenLabs/sui.git?branch=devnet with version `*`
Summary Failed to install sui, sui-gateway (see error(s) above).
error: some crates failed to install我想知道如何解决这个问题,并更新我的sui二进制?
上下文: MacOs在0.11 devnet发布之前
发布于 2022-10-21 07:27:00
在试图安装SUI二进制文件时,我也犯了同样的错误。安装说明中的以下提示解决了我的问题。
“解决问题:如果前面的命令失败,请确保安装了最新版本的Rust:”
rustup update stable
source "$HOME/.cargo/env"发布于 2022-11-07 16:04:39
尝试使用Sui模块从吉突,而不是本地。在Move.toml文件中
替换这一行
[dependencies]
Sui = { local = "../../../crates/sui-framework" }有了这个
[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework", rev = "devnet" }https://stackoverflow.com/questions/74087523
复制相似问题