Last week, I was setting up Nginx and while compiling I encountered an error, which I was able to resolve as following. I thought to document so other can be benefited from it.

[[email protected] nginx-1.6.3]# ./configure –prefix=/apps/nginx –add-module=./ngx_cache_purge-2.3 –add-module=./headers-more-nginx-module-0.25/

checking for C compiler ... not found
./configure: error: C compiler cc is not found


This usually happens when you don’t have C/GCC compiler installed on your server. All you got to do is to install gcc to resolve this.

# yum install gcc

once installed, you can verify as below.

# gcc
gcc: fatal error: no input files
compilation terminated.

This has helped me and I hope you too.

Reader Interactions


Your email address will not be published. Required fields are marked *