在openresty安装中找不到CC命令

时间:2016-01-27 11:01:09

标签: nginx cc openresty

我对Linux不是很熟悉,我刚开始学习nginx和nodejs。由于我使用Windows,我试图通过运行:

通过MinGW安装openresty
tar xvf ngx_openresty-1.9.7.1.tar.gz
cd ngx_openresty-1.9.7.1/
./configure

但是我收到以下错误:

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 special)

1 个答案:

答案 0 :(得分:0)

确保您已安装c&你的linux中的c++

你可以尝试

yum install gcc

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