Centos 7 安装 nginx安装,提示:c compiler cc is not found

nginx报错:./configure: error: C compiler cc is not found, gcc 是已经安装了的 源码安装nginx报错,找不到gcc,但是实际上gcc是存在的,如下: # ./configure checking for OS + Linux 3.10.0-957.el7.x86_64 x86_64 checking for C compiler ... not found ./configure: error: C compiler cc is not found ... 阅读详情

在VMware 中安装Centos7后,准备安装nginx-1.10.3

将nginx-1.10.3.tar.gz,解压之后,进入nginx-1.10.3目录,准备安装,执行make && make install,

系统提示如下信息:

checking for OS
 + Linux 4.4.0-127-generic x86_64
checking for C compiler ... not found

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

查了下网上的资料,解决方案也不复杂。

原因是因为缺少 gcc-c++ 的包

解决办法很简单,执行:yum -y install gcc-c++

在执行上诉命令过程中,可能因为网络问题导致下载相关依赖包失败,可以尝试多试几次,我最后是通过链接手机wifi才下载安装成功的。

安装成功之后,执行命令:cd nginx-1.10.3 && ./configure --prefix=/usr/local/nginx 检查一下

出现这个说明,nginx安装环境没问题,准备开始安装nginx,执行make && make install

安装完成之后,启动nginx,命令:/usr/local/nginx/sbing/nginx 

输入:curl http://localhost 

nginx 安装成功!

“./configure: error: C compiler cc is not found gcc和c++装完之后配置nginx的时候还会报cc找不到 错误:“./configure: error: C compiler cc is not found”  解决方法: CC=gcc export CC 设置这个环境变量,让gcc来代替cc 阅读详情

相关推荐

WOFOST模型参数调优实战:从‘跑不通’到‘预测准’的避坑指南

本文详细介绍了WOFOST模型参数调优的实战技巧,帮助用户从模型报错诊断到参数敏感性分析,再到土壤-作物参数联调策略,逐步解决‘跑不通’到‘预测准’的问题。通过Python和PCSE工具,提供参数扰动测试模板和关键参数优先级矩阵,助力作物模型的高效校准与预测。

weixin_32597009的博客 597

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

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

m0_64284147的博客 1万+

iPhone免越狱Git服务器搭建教程-iSH

iPhone免越狱Git服务器搭建教程

jts666的博客 4400

/configure: error: C compiler cc is not found

(1)报错信息./configure: error: C compiler cc is not found(2)原因没有下载gcc编译器(3)解决办法用以下命令下载gcc编译器yum -y install gcc gcc-c++ autoconf automake make ...

weixin_31852627的博客 7340

checking for C compiler ... not found

问题描述:CentOS7Nginx安装,使用./configure 命令时,报checking for C compilernot found ./configure: error: C compiler cc is not found错误,但是确定已经安装了gcc,PCRE,zlib,openssl。 解决方法:执行命令yum install glibc-devel ...

EstherLty的博客 1万+

CentOS7.9安装nginx时,报错./configure: error: C compiler cc is not found

CentOS7.9安装nginx时,报错./configure: error: C compiler cc is not found CentOS7.9安装nginx时,执行./configure --prefix=/usr/local/nginx命令时,报错: checking for OS + Linux 3.10.0-1160.24.1.el7.x86_64 x86_64 checking for C compiler ... not found ./configure: error: C com

weixin_40668374的博客 3194

nginx安装错误:c compiler cc is not found

今天安装软件nginx的时候遇到的报错:c compiler cc is not foundnginx 查了下网上的资料,解决方案也不复杂。c++ 先说明下环境:服务器 服务器:CentOS 7 nginx:2.3.1 缘由是由于缺乏 gcc-c++ 的包机器学习 解决办法很简单,执行:yum -y install gcc-c++ 完美解决!! ...

weixin_53768277的博客 4389

./configure: error: C compiler cc is not found(转载)错误处理

./configure: error

fangfangtulk的专栏 2万+

centos7安装nginx 报./configure: error: C compiler cc is not found

CentOS 7安装 nginx 执行配置命令。

rt133562的博客 911

checking for C compiler ... not found ./configure: error: C compiler cc is not found解决方案

问题描述:CentOS7Nginx安装,使用./configure --prefix=/usr/nginx命令时,报checking for C compilernot found ./configure: error: C compiler cc is not found错误,但是确定已经安装了gcc 解决方案: 在确定安装了gcc,PCRE,zlib,openssl之后,使用命令 yum install glibc-devel 结果:成功 ...

Hkdel98的博客 6316

CentOS 7 离线环境安装nginx时报错:./configure: error: C compiler cc is not found

先说解决方法: 在nginx目录下,查看objs/autoconf.err文件,该文件记录了具体的错误信息 vi objs/autoconf.err 一般就是缺少一些文件,因为我的gcc、g++也是离线包安装的,打开文件显示如下图 我这个就是没有找到libmpfr.so.4嘛,网上找了个mpfr的rpm包装上去就可以了。 具体情况具体处理,这里主要是说明可以在这个文件里看到具体的报错信息。 找到这个文件主要是想着是不是nginx代码有什么判断没走进去,就想看一下这个错是哪儿报的,然后使用...

1495
上一篇: CentOS7 yum update 更新失败
下一篇: 主机浏览器访问 VMware中Centos7 中运行的nginx
dw_java08
博客等级 码龄15年 121粉丝 66原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值