


This error leads me to other questions/answers, but it feels like the root cause is the (exit code 5002): $ rustc main.rsĮrror: linking with `link.exe` failed: exit code: 1 If I skip that error and continue to install Rust (choosing option y), the command suggests I installed successfully,īut when I try to compile, I get a different error (related the failure to install the Visual C++?). I can't find the reason for the error, I checked Stack Overflow and other sites like this one and this one I get this error at the first step of rustup-init.exe when I choose Visual C++ prerequisites: error: failed to install Visual Studio:Įrror installing Visual Studio (exit code 5002) I have not installed Visual Studio successfully before (I have Visual Studio Code, but not Visual Studio). Running Windows 10 OS Name Microsoft Windows 10 Enterprise Version 4 Build 19044. I'm installing Rust for Windows using the rustup ( rustup-init.exe) 64-bit executable
