"-bash: Gcc: Command Not Found" Using Cygwin When Compiling C?
Answer :
You can install gcc by running setup-x86.exe or setup-x86_64.exe again. The gcc package is in the Devel category:
Then you must go to System properties, System variables, and append the path to "C:\cygwin64\bin" in PATH
If you have already added the gcc package you want you may also need to setup a symbolic link to a different gcc.exe binary. For example:
$cd /usr/bin/ $ln -s i686-pc-cygwin-gcc.exe gcc $which gcc $/usr/bin/gcc
You can add the gcc package through the 'Add Package' batch file.
Comments
Post a Comment