rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
97.36k stars 12.59k forks source link

Missing instructions on Windows Mingw INSTALL.md #124591

Open Sergi-Ferrez opened 5 months ago

Sergi-Ferrez commented 5 months ago

Location

The INSTALL.md instructions for Windows does not advise to add the Mingw bin folder in the PATH. In this case it can save a lot of trouble by only adding a single line like it follows:

MinGW

MSYS2 can be used to easily build Rust on Windows:

  1. Download the latest MSYS2 installer and go through the installer. Make sure to add the 'msys64\mingw64\bin' folder to your PATH

Summary

Very simple change but can save time to new developers.

workingjubilee commented 5 months ago

Hmm. Yes, but most developers should be using rustup to install the MSVC host, and then having done so, they should already have the tools to build Rust from source via the MSVC build if necessary.

ThomasKrenn commented 4 months ago

The installation manual contains several screenshots and a lengthy description of the visualstudio installer but no screenshot of rustup or a single sentence what and where rustup is installing things.

https://rust-lang.github.io/rustup/installation/index.html

BTW: The 'Manual installation refers back to rustup again ?!? I always thought the point of a 'manual installation' is not using the installer.

I'll install rust if a 'portable' version is available.

ChrisDenton commented 4 months ago

I think you should make a new issue. This is about using the rust repo to build from source.

The rust-lang home page (specifically https://www.rust-lang.org/learn/get-started) describes installing rust, including an "Other Installation Methods" link.