我正试图在mac os中安装锚-cli。我跟随本指南安装锚-cli。但是在执行cargo install --git https://github.com/project-serum/anchor --tag v0.24.2 anchor-cli --locked命令时,我得到了以下错误
Compiling anchor-cli v0.24.2 (/Users/selvam/.cargo/git/checkouts/anchor-bf03d42499b9267c/0b4c7b0/cli)
error: there is no argument named `rpc_port`
--> cli/src/lib.rs:2211:40
|
2211 | "Your configured rpc port: {rpc_port} is already in use"
| ^^^^^^^^^^
error: there is no argument named `faucet_port`
--> cli/src/lib.rs:2221:43
|
2221 | "Your configured faucet port: {faucet_port} is already in use"
| ^^^^^^^^^^^^^
error: could not compile `anchor-cli` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `anchor-cli v0.24.2 (https://github.com/project-serum/anchor?tag=v0.24.2#0b4c7b0c)`, intermediate artifacts can be found at `/var/folders/pr/mfnrnlh92974pfszrqmj3l940000gp/T/cargo-installAhWbj9`solana -版本solana-cli 1.9.0 (src:7782d34b;壮举:378846963)
rustup --版本rustup1.23.1 (3df2264a9 2020-11-30)信息:这是用于rustup工具链管理器的版本,而不是rustc编译器。信息:当前活动的rustc版本是rustc 1.56.1 (59eed8a2a 2021-11-01)
发布于 2022-05-24 06:59:24
我认为你的生锈版已经过时了。升级锈蚀版本后再试一次。
https://stackoverflow.com/questions/72349514
复制相似问题