I've been facing the same problem. When I run gcc --version, the system is not able to find the executable file. But it worked for me when I added this path : C:\msys64\ucrt64\bin to the environment variables.