-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustup-init link guides me to install Build Tools 2022 #3024
Comments
2022 build tools should work fine |
If 2022 build tools works fine, then something has gone wrong with the check for build tools. From visual studio installer's side, everything looks as I would expect, but rustup-init still indicates that it can't find build tools. |
At a minimum, I think you need to select these components when choosing individual components:
(Assuming you are on x64 and not arm.) Or, just choose the "Desktop development with C++", though that may include extra things you may not need. I'm not exactly sure why the cmake option is necessary. |
Ah, C++ CMake tools was what I was missing. I didn't see that in the documentation. I'll see if there's a good spot to list those components in the documentation, but otherwise, you can consider this issue closed. |
Ah, interesting. So, perhaps the real requirement is MSVC vLatest? I initially chose v142 because it mentioned VS2019. |
Huh, that should work. But it doesn't. Rustup uses the cc crate to find out if MSVC is installed but that's failing to find it if the 2022 installer is used to install the 2019 build tools. Weird. I'll see if I can figure out why that is. |
I had tested in a VM, and I encountered the same problem. Trying again, I see what I did wrong that required installing cmake. I had selected |
See the issue linked above for the cause. A fix in cc-rs should not be too difficult. |
Ran into this on a fresh install and can confirm the workaround is to use whatever the latest is for VS 2022. |
Problem
I'm attempting to install rust on a new machine. When I run rustup-init, it indicates that it can't find C++ build tools, and directs me to this link to install the build tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/ After using that link, and selecting the appropriate components, the visual studio installer indicates that I have installed Visual Studio Build Tools 2022, not 2019. I don't know how to install 2019 build tools
Steps
Possible Solution(s)
I'm guessing that Microsoft has changed the download on the above page to 2022 instead of 2019. Possible solutions include:
Notes
No response
Rustup version
rustup-init 1.24.3 (ce5817a94 2021-05-31)
Installed toolchains
rustup is not installed
The text was updated successfully, but these errors were encountered: