msys2 / msys2-installer

The one-click installer for MSYS2
BSD 3-Clause "New" or "Revised" License
561 stars 87 forks source link

Fresh install using `msys2-x86_64-20230127.exe` can't run msys2 on Windows. #61

Open Lokathor opened 1 year ago

Lokathor commented 1 year ago

I performed a fresh install of msys2 to D:\msys64 and all three shell programs (ucrt64, mingw64, and mingw32) fail to launch properly with the same error message:

/cmd.exe: Exit 126.
Failed to run '/cmd.exe': No such file or directory

Here's the InstallationLog.txt, but nothing in there seems to indicate an obvious error during installation.

Biswa96 commented 1 year ago

Most of the time weird things happen when antivirus programs (like Windows Defender) interferes with the installation procedure. Would you like to check if excluding msys2 installation directory in the antivirus software fixes the issue?

Lokathor commented 1 year ago

I uninstalled everything, disabled Windows Security on the folder, reinstalled, and got the same error.

lazka commented 1 year ago

Is there anything special about your D: drive maybe?

Lokathor commented 1 year ago

Shouldn't be. This is a fairly normal pre-built windows desktop that has a smaller C drive primarily for the OS and a much bigger D drive for data and other programs. All sorts of software is installed on the D drive.

Lokathor commented 1 year ago

Also seems to have the same issue when installing on the C drive, using the default C:\msys64 path.

Biswa96 commented 1 year ago

I can not reproduce the issue in my system or in CI with latest installer. Could you please check some basic properties? For example,

Lokathor commented 1 year ago

They are not compressed, and they are NTFS.