Skip to content

Commit 10d3873

Browse files
author
Jake Shadle
committed
Update README.md
Encountered an issue going through the guide for installing the `mingw` toolchain on Windows with msys2, after some googling I found the [solution](msys2/MSYS2-packages#163 (comment)) and thought it would be good to update the README so people don't get frustrated. :)
1 parent 40fd4d6 commit 10d3873

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ Read ["Installing Rust"] from [The Book].
7272
$ pacman -S base-devel
7373
```
7474
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+
7591
3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed
7692
MSYS2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust.
7793

0 commit comments

Comments
 (0)