After downloading MSYS2 (https://www.msys2.org/) to a brand new Windows 11 computer, install it, update it, then install GNUCobol using pacman, cobc, after pressing enter, just comes back with another prompt. No message, no nothing. Here's what I do to recreate the problem:
- Download and install MSYS2 from https://www.msys2.org/
- Start MSYS2 MSYS
- Type pacman -Syu
- Type pacman -Su
- Type pacman -S mingw-w64-x86_64-gnucobol
- Not that install works fine and all dependencies are installed
- Close MSYS2 MSYS and open MSYS2 MINGW64
- Type: cobc
- All that is displayed is another terminal prompt
- If I type cobc --version
- All that is displayed is another terminal prompt
How to fix the problem
- Using Add/Remove programs, remove MSYS2
- Delete the MSYS64 directory from the C: drive
- Reinstall MSYS2
- Start MSYS2 MSYS and type: pacman -S mingw-w64-x86_64-gnucobol
- Note that I did zero updates or did I install anything else
- Close MSYS2 MSYS, open MSYS2 MINGW64
- Type: cobc
- Get the appropriat configuration file missing issue (good)
- Type: cobc --version
- Get the version (3.2 rc2) displayed just fine
Note: If I do a pacman -Syu and pacman -Su after this, cobc stops working again
I have notified the GNUCOBOL team as well.
This is new behavior. I've never had this happen before. Any ideas? Thanks everyone!