Search code examples
ccygwin

"-bash: gcc: command not found" using cygwin when compiling c?


I just installed the latest version of Cygwin ans for some reason when I try to compile code, it always flashes me this error:

-bash: gcc: command not

I also don't seem to have the gcc.exe that people are referring to and when I try installing stuff like mingw as suggested by other forum answers, it always gives me this error that ti couldn't install the repository.txt.... Looking for help on this matter!


Solution

  • You can install gcc by running setup-x86.exe or setup-x86_64.exe again. The gcc package is in the Devel category:

    enter image description here