Open jacobcreech opened 8 months ago
Do you have access to a Windows machine? I personally do not; might be able to find one but if you could run the following and share the logs, the additional verbosity might give more insight into where it is getting snagged:
RUST_LOG=trace solana-test-validator
Attaching to the process with WinDbg and viewing thread stacks would be more involved, but probably much more insightful / much quicker path to honing in. I haven't done Windows debugging in years but I don't remember the tool being too bad to work with: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/
@jacobcreech @steviez i have added Proof of Work here let me know
Pre-requisite dlls and binaries
Binaries -
Dlls -
After downloading
System Environment variables
OPENSSL_INCLUDE_DIR=C:\Program Files\OpenSSL-Win64\include OPENSSL_LIB=C:\Program Files\OpenSSL-Win64\lib OPENSSL_LIB_DIR=C:\Program Files\OpenSSL-Win64\lib\VC\x64\MT PROTOC=C:\Program Files\protoc\bin\protoc LIBCLANG_PATH=C:\Windows\System32\libclang.dll PATH=C:\Program Files\OpenSSL-Win64\bin
i did the setup
here is the ping status
Logs :
I've got fixes for some part of the windows issues at #73 to remove the reliance on additional DLLs that aren't part of a fresh windows installation. This doesn't address the tar issue though.
can this fix protoc , libclang , clang deps?
can this fix protoc , libclang , clang deps?
Those are required for building, but not running
Cool
tar stderr: tar: Can't launch external program: bzip2
This aspect should be resolved as of https://github.com/anza-xyz/agave/pull/3079 since we now use the tar crate instead of whatever tar
we can find in the environment.
With Jon's previous change, the number of remaining issues here should be reduced, possibly empty. I'll try to spin up a Windows VM at some point soon to check and see
Problem
Currently the Solana CLI will install properly on Windows, but the
solana-test-validator
will run into a few errors. Generally the recommendation has been for users to install WSL to runsolana-test-validator
, however this is frictional on the developer experience and leads to a lot of developers dropping off.Current error flow on Windows: Running
solana-test-validator
runs into the following:Inspecting the logs:
After figuring out bzip2 installation on windows,
solana-test-validator
hangs on initialization process.Logs:
Another issue related to running
solana-test-validator
on Windows: https://github.com/solana-labs/solana/issues/34793Proposed Solution
Make
solana-test-validator
work on Windows without additional installation of a bash shell or WSL.