Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to generate gRPC service classes

I am trying to follow along with this tutorial. I am stuck on trying to generate the .grpc files (service classes) but I was able to generate the message classes. When I run

protoc -I ../proto --grpc_out=. 
       --plugin=protoc-gen-grpc=grpc_cpp_plugin ../proto/eample.proto

I get "grpc_cpp_plugin: program not found". How can I generate the service classes? Im not sure about the correct command I have to run.

like image 842
amanda45 Avatar asked Oct 22 '25 04:10

amanda45


1 Answers

The question is pretty old, but I hope my answer will help somebody. Giorgio Azzinnaro was right you need to install GRPC (in addition to protoc). On OSX you can do it with:

brew install grpc

For the other languages, commands are described here

like image 121
rdo Avatar answered Oct 23 '25 18:10

rdo