In Linux and Networking Last updated:
Share on:
Cloudways offers managed cloud hosting for any size business to host a website or complex web applications.

Last week, I was setting up Nginx and while compiling I encountered an error, which I was able to resolve as follows.

I thought to document so others can be benefited from it.

[root@chandan 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

If using CentOS 8 then you can use the DNF command.

# dnf 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. Learn more about Linux administration here.

Share on:
  • Chandan Kumar
    Chandan Kumar is a seasoned technology enthusiast and entrepreneur passionate about empowering businesses and individuals globally. As the founder of Geekflare, a leading technology publication, Chandan has spearheaded the development…

Thanks to our Sponsors

More great readings on Linux

Power Your Business

Some of the tools and services to help your business grow.
  • The text-to-speech tool that uses AI to generate realistic human-like voices.

    Try Murf AI
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.

    Try Brightdata
  • is an all-in-one work OS to help you manage projects, tasks, work, sales, CRM, operations, workflows, and more.

    Try Monday
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.

    Try Intruder