什么是错误`make.exe“:no_c_compiler:命令未找到`

时间:2016-06-15 23:09:55

标签: windows makefile mingw zlib

我正在尝试在Windows 2012 Server Edition上从源代码构建grpc。我从Python网站下载并安装了Python 3.5并安装了整个MinGW软件包以及git和git bash。按照源代码构建说明:

function A() {
    return;
}

function B() {
    return NULL;
}

function C() {
}

执行make后我得到上述错误。这是shell输出供您阅读。

 $ git clone https://github.com/grpc/grpc.git
 $ cd grpc
 $ git submodule update --init
 $ make
 $ [sudo] make install

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

3 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

在系统中安装build-base,例如:

apt-get install build-base

答案 2 :(得分:0)

您可能根本没有安装C编译器,甚至没有安装gcc。如果是这个原因,那么安装gcc即可解决问题:

apt get install gcc