Reputation: 333
I am trying to run Solana rust hello world example locally (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) is not working for me. I am receiving 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
error.
My solana-test-validator version is 1.7.9
This is my config.yml
file:
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
Do you have any idea whats wrong? Or what should I fix / check?
Upvotes: 4
Views: 4017
Reputation: 1
try cd into validator folder inside solana directory and then run ./solana-test-validator
Upvotes: 0
Reputation: 333
I solved it with installing a stable version like this: sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
Upvotes: 8