1

I am using Protoc version 3.0 on Ubuntu 14.4 and issuing command

 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

I am getting this error:

/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.

However if i skip stub part and just issue command

protoc  -I=./ --java_out=. ./agent.proto

It works perfectly fine. Wondering what i am missing.

Community
  • 1
  • 1
Ammad
  • 4,031
  • 12
  • 39
  • 62

1 Answers1

4

I haven't enough reputation for comments, so this is questions to author:

  1. Have you checked "/opt/jvision/grpc/oc/protoc-gen-grpc-java-1.0.0-linux-x86_32.exe" path? Is it correct?
  2. Does it have executable flag?
  3. Is it compiled for linux?
Radik Kurbanov
  • 300
  • 2
  • 6
  • Thanks. Point number two fix the issue. protoc -I ./ --java_out=. --grpc_out=. --plugin=protoc-gen-grpc=./protoc-gen-grpc-java-1.0.0-linux-x86_64.exe ./agent.proto – Ammad Apr 12 '17 at 07:36
  • i dont know why this answer doesnt have more upvotes. 2nd step resolved it for me. bless you @Radiv – Nitin Kumar Sep 14 '20 at 12:44
  • Thanks! The 2nd item is easy to miss, I do appreciate your answer. – Den Nov 03 '21 at 14:41