在 openresty 安装中找不到 CC 命令



我对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 特殊版)

确保在Linux中安装了cc++

你可以试试

yum install gcc

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

相关内容

  • 没有找到相关文章

最新更新