"-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:

enter image description here


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.

enter image description here


Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?