我正在尝试在Windows 2012 Server Edition上从源代码构建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
执行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
在您的系统中安装build-base,例如:
apt-get install build-base