-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Does not work in Windows: CLI app: solana-test-validator #34793
Comments
Will work on this ! |
Update: an error message pops up with an "Ok" button: "The code execution cannot proceed because libssl-3-x64.dll was not found. Reinstalling the program may fix this problem." |
Update: searched for I can now run it:
However, it hangs forever at this point:
It works nicely under WSL and I can connect to it from Windows. |
Manage to run solana-test-validator need to see logs and test it properly link to logs - https://gist.github.com/Nagaprasadvr/cebdf423562ac0fbfdaa48cedfd2e714 |
I guess we have to provide some steps on how to install prerequisites to run solana-test-validator on windows ! it works just fine after installing all prerequisite binaries and setting all the system environment variables ! |
Pre-requisite dlls and binaries Binaries -
Dlls -
After downloading
System Environment variables OPENSSL_INCLUDE_DIR=C:\Program Files\OpenSSL-Win64\include |
@sharpe5 let me know if this works for you |
Nice work! Now that you have proven it is possible, it opens the way to fix
the Windows installer.
Please note that I got it working under Windows by using WSL. I ran it,
found the IP address of WSL under windows, then connected using native
Windows binaries and everything worked well on testnet such as adding to
balance, check epoch, etc.
…On Sat, 2 Mar 2024, 10:23 Nagaprasad V R, ***@***.***> wrote:
Pre-requisite dlls and binaries
Binaries -
1. Protoc -
https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-win64.zip
2. OpenSSL-Winx64 -
https://slproweb.com/download/Win64OpenSSL-3_2_1.exe
Dlls -
1. libssl - https://www.dllme.com/dll/files/libssl-3-x64
2. libcrypto - https://www.dllme.com/dll/files/libcrypto-3-x64
3. libclang - https://www.dllme.com/dll/files/libclang/
4. clang - https://www.dllme.com/dll/files/clang
After downloading
1. Binaries , I executed them and placed them in C:\Program FIles\ dir
2. Dlls - i placed them in C:\Windows\System32\ dir
System Environment variables
—
Reply to this email directly, view it on GitHub
<#34793 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ3FJDZ2ATB5MID233NF3DYWGSBDAVCNFSM6AAAAABB4UE2YGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUG42TMNBVGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
libclang - https://www.dllme.com/dll/files/libclang/ |
My bad , updated the link |
Have u tried testing without wsl , just the cmd ? Setting up all prerequisites and then launching solana testnet validator and executing some txs |
I don't think you have updated it |
I have updated here . |
Problem
I installed Solana on Windows 10 x64 version 10.0.19045 Build 19045.
Ran this:
It immediately exited, with no error message or any sort. I tried
solana-test-validator --version
with the same result. This worked nicely:solana --version
.I then tried it under WSL with Ubuntu 22.04 LTS and it worked perfectly.
Proposed Solution
Fix
solana-test-validator
to work under Windows, or at the very least, display an error message on running that it does not support Windows. Might want to update the docs as well.The text was updated successfully, but these errors were encountered: