rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
52.69k stars 10.02k forks source link

failed to install rustlings on my windows machine how to fix this? #2082

Closed syntaxboybe closed 1 month ago

syntaxboybe commented 1 month ago

error: linker link.exe not found error: could not compile windows_x86_64_msvc (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile serde (build script) due to 1 previous error error: could not compile proc-macro2 (build script) due to 1 previous error error: could not compile rustversion (build script) due to 1 previous error error: failed to compile rustlings v6.2.0,

mo8it commented 1 month ago

You don't have a linker. Please install Rust again and accept all dialogs. It asks you to install somethings like a C++ tools in Visual-Studio. Please accept that to get a linker.

See https://stackoverflow.com/a/55603112

syntaxboybe commented 1 month ago

You don't have a linker. Please install Rust again and accept all dialogs. It asks you to install somethings like a C++ tools in Visual-Studio. Please accept that to get a linker.

See https://stackoverflow.com/a/55603112

i see but i don't want to install visual studio in my machine just to run and compile cargo coz it consumes more space. so i found an alternative way. btw thanks for the help