【发布时间】:2017-04-12 00:26:13
【问题描述】:
我在 Ubuntu 14.4 上使用 Protoc 3.0 版并发出命令
protoc -I ./ --java_out=. --grpc_out=. --plugin=protoc-gen-grpc=/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe ./agent.proto
Same issue for python described here
我收到此错误:
/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe: program not found or is not executable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.
但是,如果我跳过存根部分并发出命令
protoc -I=./ --java_out=. ./agent.proto
它工作得很好。想知道我错过了什么。
【问题讨论】:
-
仅供参考 1.0.0 现在已经很老了,您可以考虑升级到 1.2.0
-
那么“protoc gen grpc”1.2.0 与 Protoc 3.2 编译器一起使用还是可以与 protoc 3.0 编译器一起使用?
标签: java grpc grpc-java protoc