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.
[[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
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.
- Tagged in:
More great readings on Sysadmin
Looking For Traceroute on RHEL 8? Try TracepathAbhishek Nair on June 14, 2022
6 Best Switch Port Monitoring ToolsDurga Prasad Acharya on June 12, 2022
Windows 10/11 Random Shutdown: How to Find the CauseHitesh Sant on May 30, 2022
7 Best Server Configuration Monitoring and Auditing ToolsTalha Khalid on May 28, 2022
8 Best FTP Server Software for Windows for Secure TransferSatish Shethi on May 24, 2022
OSI Model Layers: An Introduction GuideAmrita Pathak on May 13, 2022
Join Geekflare Newsletter
Every week we share trending articles and tools in our newsletter. More than 10,000 people enjoy reading, and you will love it too.