首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法编译gRPC java

无法编译gRPC java
EN

Stack Overflow用户
提问于 2017-07-02 11:50:18
回答 2查看 861关注 0票数 1

当我试图为java编译gRPC时,我得到了以下错误

我正在运行的命令是gradlew.bat installDist

代码语言:javascript
复制
Execution failed for task ':grpc-compiler:compileJava_pluginExecutableJava_pluginCpp'.
> No tool chain is available to build for platform 'x86_64':
    - Tool chain 'visualCpp' (Visual Studio): Could not locate a Visual Studio installation, using the Windows registry and system path.
    - Tool chain 'gcc' (GNU GCC): Could not find C compiler 'gcc' in system path.
    - Tool chain 'clang' (Clang): Could not find C compiler 'clang' in system path.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我已将文件夹(C:\Program (X86)\MicrosoftVisualStudio14.0)添加到路径中

更新

我已经安装了gcc和clang,但是我仍然得到了上面的错误。

EN

回答 2

Stack Overflow用户

发布于 2017-12-21 16:49:04

我只是遇到了同样的问题,结果我跳过了一个步骤,更改为示例dir,它就能工作了。

代码语言:javascript
复制
$ # Clone the repository at the latest release to get the example code:
$ git clone -b v1.8.0 https://github.com/grpc/grpc-java
$ # Navigate to the Java examples:
$ cd grpc-java/examples

**Run a gRPC application**

1. Compile the server    
$ ./gradlew installDist

2. Run the server
$ ./build/install/examples/bin/hello-world-server

3. In another terminal, compile and run the client
$ cd android/helloworld
$ ./gradlew installDebug

Congratulations! You’ve just run a client-server application with gRPC.

https://grpc.io/docs/quickstart/android.html#run-a-grpc-application

票数 0
EN

Stack Overflow用户

发布于 2019-10-04 07:13:30

就连我也面临着同样的问题。当您克隆代码时,代码库将是最新的主版。主代码有时会不稳定。但是在其中一个googlegroup中,上面提到的签出v1.7.0并尝试,它对我起了作用。git签出v1.7.0,

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44870493

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档