安装 anchor-cli 时出错 |茄属rpc 端口:{rpc_port} 已被使用
Error installing anchor-cli | solana | rpc port: {rpc_port} is already in use
我正在尝试在 mac os 中安装 anchor-cli。我按照 this guide 安装了 anchor-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 --version
solana-cli 1.9.0 (src:7782d34b; feat:378846963)
rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
信息:这是 rustup 工具链管理器的版本,而不是 rustc 编译器。
信息:当前活动的 rustc
版本是 rustc 1.56.1 (59eed8a2a 2021-11-01)
我认为你的 Rust 版本已经过时了。
升级rust版本后重试
我正在尝试在 mac os 中安装 anchor-cli。我按照 this guide 安装了 anchor-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 --version solana-cli 1.9.0 (src:7782d34b; feat:378846963)
rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
信息:这是 rustup 工具链管理器的版本,而不是 rustc 编译器。
信息:当前活动的 rustc
版本是 rustc 1.56.1 (59eed8a2a 2021-11-01)
我认为你的 Rust 版本已经过时了。 升级rust版本后重试