簡體   English   中英

solana-test-validator:沒有這樣的文件或目錄恐慌

[英]solana-test-validator: No such file or directory panic

我正在嘗試在本地運行 Solana rust hello world 示例( https://github.com/solana-labs/example-helloworld )。 我閱讀了自述文件,但“啟動本地 Solana 集群”步驟( 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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM