↓ Skip to main content
  1. Tags/

GRPC

2018

java-grpc 踩坑记录

·1789 words·4 mins
最近的项目需要java和python之间的进程通信,想到了之前使用过的 grpc。 参考官方quickstart JDK: version 7 or higher 看起来只依赖jdk,美滋滋 然后按照文档执行 ./gradlew installDist 报错: 1Task :grpc-compiler:compileJava_pluginExecutableJava_pluginCpp FAILED 2 3FAILURE: Build failed with an exception. 4 5* What went wrong: 6Execution failed for task ':grpc-compiler:compileJava_pluginExecutableJava_pluginCpp'. 7> No tool chain is available to build for platform 'x86_64': 8 - Tool chain 'visualCpp' (Visual Studio): Visual Studio is not available on this operating system. 9 - Tool chain 'gcc' (GNU GCC): Could not determine GCC metadata: could not find vendor in output of /usr/local/gcc-4.9.4/bin/gcc. 10 - Tool chain 'clang' (Clang): Could not find C compiler 'clang' in system path. 11 12* Try: 13Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 14 15* Get more help at https://help.gradle.org 16 17BUILD FAILED in 3m 47s 18 19~ 看起来是 gcc 或者 clang 的问题… 先装个 clang 再说,可能 clang 太常用了,所以文档没有提到,这下一定可以了。

gRPC学习笔记

·628 words·2 mins
gRPC 是 google 最新发布的开源 RPC 框架, 声称是"一个高性能,开源,将移动和HTTP/2放在首位的通用的RPC框架.". 技术栈非常的新, 基于HTTP/2, netty4.1, proto3, 拥有非常丰富而实用的特性, 堪称新一代RPC框架的典范.