solana-test-validator:没有这样的文件或目录恐慌

solana-test-validator: No such file or directory panic

我正在尝试 运行 本地的 Solana rust hello world 示例 (https://github.com/solana-labs/example-helloworld). I went through the readme but the step "Start local Solana cluster" (https://github.com/solana-labs/example-helloworld#start-local-solana-cluster) 对我不起作用。我收到 thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', validator/src/bin/solana-test-validator.rs:294:71 错误。

我的 solana-test-validator 版本是 1.7.9

这是我的 config.yml 文件:

Config File: /home/work/.config/solana/cli/config.yml
RPC URL: http://127.0.0.1:8899 
WebSocket URL: ws://127.0.0.1:8900/ (computed)
Keypair Path: /home/work/.config/solana/id.json 
Commitment: confirmed

你知道哪里出了问题吗?或者我应该修复/检查什么?

我通过安装这样的稳定​​版本解决了这个问题:sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

尝试 cd 进入 solana 目录中的验证器文件夹 然后 运行 ./solana-test-validator