这个错误是什么`make.exe": no_c_compiler: Command not found`

Sid*_*kla 3 windows mingw makefile zlib

我正在尝试在 Windows 2012 Server 版本上从源代码构建grpc。我从 Python 网站下载并安装了 Python 3.5,并安装了整个 MinGW 包以及 git 和 git bash。按照从源代码构建的说明进行操作:

 $ git clone https://github.com/grpc/grpc.git
 $ cd grpc
 $ git submodule update --init
 $ make
 $ [sudo] make install
Run Code Online (Sandbox Code Playgroud)

执行make后出现上述错误。这是供您阅读的 shell 输出。

PS C:\Users\thunderboltsid\grpc> make
[MAKE]    Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE]    Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE]    Generating cache.mk
[C]       Compiling third_party/zlib/adler32.c
make.exe": no_c_compiler: Command not found
make.exe": *** [/c/Users/thunderboltsid/grpc/objs/opt/third_party/zlib/adler32.o] Error 127
Run Code Online (Sandbox Code Playgroud)

我真的无法理解这个错误应该是什么。尝试谷歌搜索,但没有帮助。任何输入将不胜感激。

小智 5

你可能需要跑 apt-get install which