【问题标题】:CC command not found on openresty installation在 openresty 安装中找不到 CC 命令
【发布时间】:2016-05-04 07:03:57
【问题描述】:

我对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专用)

【问题讨论】:

    标签: nginx cc openresty


    【解决方案1】:

    确保您已在 linux 中安装 cc++

    你可以试试

    yum install gcc
    

    安装编译器。 GNU Compiler Collection 包括 C、C++、Objective-C、Fortran、Java、Ada&Go

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-28
      • 2016-11-04
      • 2022-01-12
      • 2018-06-17
      • 2014-01-13
      • 2015-07-20
      • 2014-09-25
      相关资源
      最近更新 更多