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

标签 windows makefile mingw zlib

我正在尝试构建 grpc来自 Windows 2012 Server 版本的源代码。我从 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

执行 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

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

最佳答案

您可能需要运行apt-get install which

关于windows - 这是什么错误 `make.exe": no_c_compiler: Command not found`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37847311/

相关文章:

c - 未定义的操作

c++ - 如何将 Ubuntu C++ 库移植到 MinGW?

c++ - OpenCL 浮点精度

windows - 配置在 Tomcat 和 Windows 上运行的 Solr

.net - Windows/.NET 负载分配和平衡

windows - C++ -'Stream' 未声明的标识符

makefile - 为子目录编写通用 Makefile 规则

c - 用复杂的构建过程夹板整个程序

c - 使错误 : make (e=2): The system cannot find the file specified

mingw - Windows 上的 Cython pyximport 错误