Following the instructions at http://msys2.github.io/ on a clean Windows 10 machine, I got the following error after completing Step 6 and trying to bring up a MSYS2 window via the Start menu:
'C:\msys64\msys2_shell.bat' is not recognized as an internal or external command,
operable program or batch file.
I believe this is likely caused by commit 2c4e6d7289 and that a new binary installer needs to be made to fix this.
Steps to reproduce.
Any workaround available?
@dimkanewtown Please see the warning printed by the filesystem package when it is upgraded. This warning is printed by pacman when you upgrade the filesystem package. This warning is also here:
https://github.com/Alexpux/MSYS2-packages/blob/master/filesystem/filesystem.install
Here is the text of the warning:
WARNING: the shell starting scripts have been unified. Please update your
shortcuts to the following targets, otherwise they will STOP WORKING:
* MSYS2_ROOT\msys2_shell.cmd -mingw32
* MSYS2_ROOT\msys2_shell.cmd -mingw64
* MSYS2_ROOT\msys2_shell.cmd -msys\n\n'
Yep, should've been reading onscreen messages more closely. Thanks!
Would you like to try new installer https://msys2.github.io?
I tried out the new installer and it completely fixes this issue. Closing ticket. Thanks!
Unfortunately new installer introduces new issue.
You have to manually create mingw32 and mingw64 dirs in /msys64 or add --force to pacman when installing first i686 or x86_64 mingw package.
@mati865, is it due to this issue? elieux/msys2-launcher#1
@elieux, @Alexpux probably fixed it already https://github.com/Alexpux/MSYS2-packages/commit/730cd21da93909393fadaba51b05150e0f672e1b but he cannot release new installer until he returns.
Most helpful comment
@dimkanewtown Please see the warning printed by the filesystem package when it is upgraded. This warning is printed by pacman when you upgrade the filesystem package. This warning is also here:
https://github.com/Alexpux/MSYS2-packages/blob/master/filesystem/filesystem.install
Here is the text of the warning: