From 10d3873fb5669982577117882cf0c021d627eda3 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Thu, 27 Aug 2015 17:00:06 +0200 Subject: [PATCH 1/3] 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](https://github.com/Alexpux/MSYS2-packages/issues/163#issuecomment-73555971) and thought it would be good to update the README so people don't get frustrated. :) --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 391ada0efef..59fc70494cb 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,22 @@ Read ["Installing Rust"] from [The Book]. $ pacman -S base-devel ``` + > ***Note:*** If the package install fails during retrieval, you may need to update + > `pacman`'s mirrors before attempting to install the `mingw64` toolchain. An example + > of the symptom of this problem would be... + + > ```sh + > error: failed retrieving file 'mingw-w64-x86_64-libiconv-1.14-4-any.pkg.tar.xz' + > from downloads.sourceforge.net : The requested URL returned error: 404 + > ``` + + > To update the mirrors for pacman, simply run the following commands in your + > MSYS2 terminal and retry installing the `mingw64` toolchain. + + > ```sh + > $ pacman -Sy&&pacman -S pacman-mirrors + > ``` + 3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed MSYS2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust. From 371c0ead1fb82f7c21c1d0126825785530c671b7 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 28 Aug 2015 09:46:23 +0200 Subject: [PATCH 2/3] Update README.md Folded in suggestion from @brson to simply put the mirror update step in the regular set of tool chain install commands. --- README.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 59fc70494cb..f581507e3a5 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,9 @@ Read ["Installing Rust"] from [The Book]. tools. ```sh + # Update package mirrors (may be needed if you have a fresh install of MSYS2) + $ pacman -Sy&&pacman -S pacman-mirrors + # Choose one based on platform: $ pacman -S mingw-w64-i686-toolchain $ pacman -S mingw-w64-x86_64-toolchain @@ -72,22 +75,6 @@ Read ["Installing Rust"] from [The Book]. $ pacman -S base-devel ``` - > ***Note:*** If the package install fails during retrieval, you may need to update - > `pacman`'s mirrors before attempting to install the `mingw64` toolchain. An example - > of the symptom of this problem would be... - - > ```sh - > error: failed retrieving file 'mingw-w64-x86_64-libiconv-1.14-4-any.pkg.tar.xz' - > from downloads.sourceforge.net : The requested URL returned error: 404 - > ``` - - > To update the mirrors for pacman, simply run the following commands in your - > MSYS2 terminal and retry installing the `mingw64` toolchain. - - > ```sh - > $ pacman -Sy&&pacman -S pacman-mirrors - > ``` - 3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed MSYS2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust. From 7ab8ed84fd939364a48f3bf5c99cd67f3a389bc1 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 28 Aug 2015 20:24:13 +0200 Subject: [PATCH 3/3] Update README.md Use suggested composite command instead of 2 separate commands. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f581507e3a5..67285da2e3a 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Read ["Installing Rust"] from [The Book]. ```sh # Update package mirrors (may be needed if you have a fresh install of MSYS2) - $ pacman -Sy&&pacman -S pacman-mirrors + $ pacman -Sy pacman-mirrors # Choose one based on platform: $ pacman -S mingw-w64-i686-toolchain