My OS is Windows version is 22H2 (25284.1000). And MSYS2 won’t install. I know that you guys aren’t responsible for MSYS2, but perhaps some of you have encountered the same problem and know a solution! =)
At 50%, I get a message. Since I am a German, this translation might be not so correct: (Message Box)
"Error while installing component com.msys2.root: Execution failed (Unexpected exit code: 254): “C:/msys64\usr\bin\bash.exe --login -c exit”
Tried “Repeat”, but didn’t work. “Ignore” leads to this:
(Console window “MSYS2 UCRT64 Shell” opens)
Content:
Error: Could not fork child process: Resource temporarily not available (-1).
DLL rebasing may be required; see 'rebaseall / rebase --help".
Any ideas?
No expert here, but … sure you got the latest and greatest installer ?
https://github.com/msys2/msys2-installer/releases/download/2023-01-27/msys2-x86_64-20230127.exe
and followed the rules:
Installation Folder (short ASCII-only path on a NTFS volume, no accents, no spaces, no symlinks, no subst or network drives, no FAT).
1 Like
Ohmer
(Dominique Camus)
February 1, 2023, 3:16pm
3
Be sure:
You have admin rights (required to install into C:\msys64 folder).
Disable (during install) your firewall.
Don’t use backslash ** but slash / instead, for paths.
When installed, allow rules are required for .exeS (executables who need connection, like git.exe etc) in your firewall.
Ohmer
(Dominique Camus)
February 1, 2023, 3:16pm
4
Interesting…
(I have downloaded mine from www.msys2.org couple of week ago, also previous versions)
Ohmer
(Dominique Camus)
February 1, 2023, 3:20pm
5
@Jens.Peter.Nielsen msys64 is a valid folder name (I have used D:\msys64 )
Surely OP have both folder rights & firewall blockings.
I didn’t read properly - it’s right there “C:/msys64\usr\bin\bash.exe --login -c exit”
1 Like
Yes, of course. No folder with the same name, firewall deactivated, executed the installer as administrator.
Ohmer
(Dominique Camus)
February 1, 2023, 3:27pm
8
Ah yep… perhaps msys2 doesn’t like slashes and backslashes!
Slashes / are working, I’m always using cd /d/RackDev/plugins/Ohmer (as example) since four years.
Also: this Unix-like terminal is case sensitive !
Perhaps try running the msys installer from powershell with "--verbose"
PS G:\Downloads> .\msys2-x86_64-20230127.exe --verbose
IFW Version: 4.5.0, built with Qt 5.15.7.
Build date: Nov 21 2022
Installer Framework SHA1: fd24bf3955be8e71cd331dd0b4cccd4f1a912b3c
[0] Arguments: G:\Downloads\msys2-x86_64-20230127.exe, --verbose
[4] Operations sanity check succeeded.
[9] Using metadata cache from "C:/Users/jpn99/AppData/Local/cache\\qt-installer-framework\\d75f1c19-3379-3717-ae8d-1404b51494a9"
[10] Found 0 cached items.
[10] Language: en-GB
[47] Loaded control script ":/metadata/installer-config/control_js.js"
[47] Using control script: ":/metadata/installer-config/control_js.js"
[4801] Fetching latest update information...
[4806] Loading component scripts...
[27381] backup operation: Mkdir
[27382] - arguments: H:/msys64_02
[27382] Done
[27382] perform operation: Mkdir
[27382] - arguments: H:/msys64_02
[27382] Done
[27383] Preparing the installation...
[27383] Install size: 1 components
[27386] Preparing to unpack components...
[27386] backup com.msys2.root concurrent operation: Extract
[27387] - arguments: installer://com.msys2.root/20230127msys64.7z, H:/msys64_02
[27387] Started
[27558] Unpacking components...
[27559] perform com.msys2.root concurrent operation: Extract
[27560] - arguments: installer://com.msys2.root/20230127msys64.7z, H:/msys64_02
[27560] Started
[37072] Installing component MSYS2
[37074] backup com.msys2.root operation: CreateShortcut
[37074] - arguments: H:/msys64_02/mingw32.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MINGW32.lnk, iconPath=H:/msys64_02/mingw32.exe
[37075] Done
[37075] perform com.msys2.root operation: CreateShortcut
[37076] - arguments: H:/msys64_02/mingw32.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MINGW32.lnk
[37098] Done
[37099] backup com.msys2.root operation: CreateShortcut
[37100] - arguments: H:/msys64_02/mingw64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MINGW64.lnk, iconPath=H:/msys64_02/mingw64.exe
[37103] Done
[37103] perform com.msys2.root operation: CreateShortcut
[37105] - arguments: H:/msys64_02/mingw64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MINGW64.lnk
[37115] Done
[37116] backup com.msys2.root operation: CreateShortcut
[37118] - arguments: H:/msys64_02/ucrt64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 UCRT64.lnk, iconPath=H:/msys64_02/ucrt64.exe
[37121] Done
[37121] perform com.msys2.root operation: CreateShortcut
[37123] - arguments: H:/msys64_02/ucrt64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 UCRT64.lnk
[37135] Done
[37136] backup com.msys2.root operation: CreateShortcut
[37137] - arguments: H:/msys64_02/clang64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 CLANG64.lnk, iconPath=H:/msys64_02/clang64.exe
[37141] Done
[37141] perform com.msys2.root operation: CreateShortcut
[37142] - arguments: H:/msys64_02/clang64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 CLANG64.lnk
[37153] Done
[37154] backup com.msys2.root operation: CreateShortcut
[37155] - arguments: H:/msys64_02/clangarm64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 CLANGARM64.lnk, iconPath=H:/msys64_02/clangarm64.exe
[37158] Done
[37159] perform com.msys2.root operation: CreateShortcut
[37160] - arguments: H:/msys64_02/clangarm64.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 CLANGARM64.lnk
[37171] Done
[37171] backup com.msys2.root operation: CreateShortcut
[37173] - arguments: H:/msys64_02/msys2.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MSYS.lnk, iconPath=H:/msys64_02/msys2.exe
[37176] Done
[37176] perform com.msys2.root operation: CreateShortcut
[37177] - arguments: H:/msys64_02/msys2.exe, C:\Users\jpn99\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MSYS2_02/MSYS2 MSYS.lnk
[37189] Done
[37189] backup com.msys2.root operation: Execute
[37190] - arguments: H:/msys64_02\usr\bin\bash.exe, --login, -c, exit
[37191] Done
[37192] perform com.msys2.root operation: Execute
[37193] - arguments: H:/msys64_02\usr\bin\bash.exe, --login, -c, exit
[37216] H:/msys64_02\\usr\\bin\\bash.exe" started, arguments: "--login -c exit
[37530] Copying skeleton files.\nThese files are for the users to personalise their msys2 experience.\n\nThey will never be overwritten nor automatically updated.\n\n'./.bashrc' -> '/home/jpn99/.bashrc'\n
[37545] './.bash_logout' -> '/home/jpn99/.bash_logout'\n
[37557] './.bash_profile' -> '/home/jpn99/.bash_profile'\n
[37568] './.inputrc' -> '/home/jpn99/.inputrc'\n
[37580] './.profile' -> '/home/jpn99/.profile'\n
[37652] 'C:\\WINDOWS\\system32\\drivers\\etc\\hosts' -> '/etc/hosts'\n
[37685] 'C:\\WINDOWS\\system32\\drivers\\etc\\protocol' -> '/etc/protocols'\n
[37717] 'C:\\WINDOWS\\system32\\drivers\\etc\\services' -> '/etc/services'\n
[37750] 'C:\\WINDOWS\\system32\\drivers\\etc\\networks' -> '/etc/networks'\n
[38415] ==> Generating pacman master key. This may take some time.\n
[39059] ==> Updating trust database...\n==> Appending keys from msys2.gpg...\n
[39693] ==> Locally signing trusted keys in keyring...\n
[40005] -> Locally signed 5 keys.\n==> Importing owner trust values...\n==> Disabling revoked keys in keyring...\n
[40320] -> Disabled 4 keys.\n==> Updating trust database...\n
[48598] \x1B[H\x1B[2J\x1B[3J\n\n###################################################################\n# #\n#
#\n# C A U T I O N #\n# #\n#
This is first start of MSYS2. #\n# You MUST restart shell to apply necessary actions. #\n# #\n# #\n###################################################################\n\n\n\x1B[H\x1B[2J\x1B[3J
[48611] Done
[49477] Warning: DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="8514oem", pointsize=8.25, pixelsize=20, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("8514oem", lfWidth=0, lfHeight=-20) dpi=144
[49499] Writing maintenance tool: "H:/msys64_02/uninstall.exe.new"
[49501] Writing maintenance tool.
[49703] Wrote permissions for maintenance tool.
[49729] Maintenance tool hard restart: false.
[49731] Installation finished!
[| 100%]
Are you running a third-party anti-virus program, or just using the built-in Defender?
Also, when you run the installer, try and run it by right-clicking on it and select “Run as administrator”.
Caecos
(Marc Demers)
February 2, 2023, 1:11pm
11
You need to uninstall fisrt MSYS2, after look if the folder is still on your PC and delete it. Then restart your PC and finally install a fresh MSYS2 with administrator rigth… it should works…
jackokring
(Simon "Jacko" Jackson)
February 2, 2023, 1:17pm
12
It has been a long time since I used MSYS2 (64-bit as 32-bit had issues with allocation of memory at the time), maybe it will migrate to WSL in the future, but today? @Caecos says right. If there are still issues, then something very strange is going on.