Skip to content

Commit 371c0ea

Browse files
author
Jake Shadle
committed
Update README.md
Folded in suggestion from @brson to simply put the mirror update step in the regular set of tool chain install commands.
1 parent 10d3873 commit 371c0ea

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,16 @@ Read ["Installing Rust"] from [The Book].
6565
tools.
6666
6767
```sh
68+
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
69+
$ pacman -Sy&&pacman -S pacman-mirrors
70+
6871
# Choose one based on platform:
6972
$ pacman -S mingw-w64-i686-toolchain
7073
$ pacman -S mingw-w64-x86_64-toolchain
7174
7275
$ pacman -S base-devel
7376
```
7477
75-
> ***Note:*** If the package install fails during retrieval, you may need to update
76-
> `pacman`'s mirrors before attempting to install the `mingw64` toolchain. An example
77-
> of the symptom of this problem would be...
78-
79-
> ```sh
80-
> error: failed retrieving file 'mingw-w64-x86_64-libiconv-1.14-4-any.pkg.tar.xz'
81-
> from downloads.sourceforge.net : The requested URL returned error: 404
82-
> ```
83-
84-
> To update the mirrors for pacman, simply run the following commands in your
85-
> MSYS2 terminal and retry installing the `mingw64` toolchain.
86-
87-
> ```sh
88-
> $ pacman -Sy&&pacman -S pacman-mirrors
89-
> ```
90-
9178
3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed
9279
MSYS2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust.
9380

0 commit comments

Comments
 (0)