Make Error 127 [Makefile:136: all] Error 2

Okay, I got it to run. I’m not sure which of these things did the trick, but here is what I did:

  1. Uninstalled MSYS2 entirely, rebooted.
  2. Reinstalled MSYS2, rebooted.
  3. Opened MINGW64, ran the following commands:
    pacman -Suy
    pacman -Suy (again x2)
    pacman -S mingw-w64-x86_64-gcc
    pacman -S mingw-w64-x86_64-cmake
    pacman -S make
    pacman -Suy
  4. Closed MINGW64, updated system environmental variable PATH to include the following directories:
    o C:\msys64\mingw64\bin\ (this was already there, just being thorough)
    o C:\msys64\mingw64\lib\
    o C:\msys64\mingw64\
  5. Opened MING64, ran the scripts again, everything went through this time.