I'm trying to follow this tutorial.
I'm running a WSL2 Ubuntu18.04 machine in a Windows 10 system and am stuck when running this line:
$ solana-test-validator
This is the output I get:
Ledger location: test-ledger
Log: test-ledger/validator.log
Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist
Any clues about what can be wrong?
So do follow this link for more explanation https://github.com/solana-labs/example-helloworld/issues/294
But to clarify something that was not clear for me from this Answer. All you need to do is run the solana-test-validator from the home dir in your WSL2. I did not need to reinstall all of the dependencies to get it running correctly.
When starting your WSL terminal the starting directory is /mnt/c/...
you need to cd ~/
and then run solana-test-validator.
Before running solana-test-validator,
you need to cd ~/
and then run solana-test-validator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With