编译安装nginx时遇到
C compiler cc is not found
,一般情况下是因为没有安装gcc,但是同事遇到的问题有点不一样,明明已经安装了gcc和cc
问题描述
- 编译安装nginx
./configure遇到错误,C compiler cc is not found
但是gcc和cc命令都已经安装/usr/bin/gcc和、/usr/bin/cc
- 编译安装redis
make gcc: error trying to exec 'cc1': execvp: No such file or directory
问题解决
应该是gcc安装的时候出现了问题,所以重装gcc等开发组件
代码语言:javascript复制yum remove -y gcc
yum install -y gcc gcc-c
参考
- configure: error: C compiler cc is not found
- 安装Redis 编译make gcc: error trying to exec 'cc1': execvp: 没有该文件或目录的错误