首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在openresty安装上找不到CC命令

在openresty安装上找不到CC命令
EN

Stack Overflow用户
提问于 2016-01-27 19:01:09
回答 1查看 867关注 0票数 1

我对Linux不是很熟悉,我刚刚开始学习nginx和nodejs。由于我使用的是Windows,所以我尝试通过MinGW安装openresty,方法是运行:

代码语言:javascript
复制
tar xvf ngx_openresty-1.9.7.1.tar.gz
cd ngx_openresty-1.9.7.1/
./configure

但我得到以下错误:

代码语言:javascript
复制
platform: msys (msys)
cp -rp bundle/ build
cd build
cd LuaJIT-2.1-20151219
Can't exec "cc": No such file or directory at ./configure line 588.
make TARGET_STRIP=@: CCDEBUG=-g CC=cc PREFIX=/usr/local/openresty/luajit
==== Building LuaJIT 2.1.0-beta1 ====
make -C src
make[1]: cc: Command not found
make[1]: Entering directory `/c/ngx_openresty-1.9.7.1/build/LuaJIT-2.1-20151219/src'
make[1]: cc: Command not found
make[1]: cc: Command not found
make[1]: cc: Command not found
make[1]: cc: Command not found
make[1]: cc: Command not found
Makefile:262: *** Unsupported target architecture.  Stop.
make[1]: Leaving directory `/c/ngx_openresty-1.9.7.1/build/LuaJIT-2.1-20151219/src'
make: *** [default] Error 2
ERROR: failed to run command: make TARGET_STRIP=@: CCDEBUG=-g CC=cc PREFIX=/usr/local/openresty/luajit

我还需要安装什么东西吗?存在GCC,版本为3.4.4 (msys特别版)

EN

回答 1

Stack Overflow用户

发布于 2017-09-05 13:34:48

确保您已经在linux中安装了c & c++

你可以试试

代码语言:javascript
复制
yum install gcc

来安装编译器。GNU编译器集合,包括C、、C++、Objective-C、Fortran、Java、Ada和Go

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35035496

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档