grpc_cpp_plugin not found

9,812 views
Skip to first unread message

Nishant Agrawal

unread,
Sep 20, 2015, 5:31:15 PM9/20/15
to grpc.io
Hi,

I am student of UW-Madison and I am trying to use gRpc for some class project.

I was able to successfully install everything by following the instrctuion but when I try to run hello world program of c++, I get following erros:


root@Nishant-PC:/home/nishant/workspace/grpc/examples/cpp/helloworld# make helloworld.grpc.pb.cc helloworld.pb.cc
protoc -I ../../protos --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../../protos/helloworld.proto
helloworld.proto:33:8: Option "objc_class_prefix" unknown.

If I try to do make it gives me,

 DEPENDENCY ERROR

You don't have the grpc c++ protobuf plugin installed in your path.
Please install grpc. You can find it here:

   https://github.com/grpc/grpc

Here is what I get when trying to detect if you have the plugin:

which grpc_cpp_plugin
make: [system-check] Error 1 (ignored)


make: *** [system-check] Error 1

I tried to search for instruction to install grpc_cpp_plugin but not able to find it.
It would be great if someone could help me here.


madhuka...@gmail.com

unread,
Mar 24, 2016, 4:18:12 PM3/24/16
to grpc.io
I am facing the same issue, does anybody has a solution for this?

Thanks,
Madhukar

madhuka...@gmail.com

unread,
Mar 24, 2016, 5:42:02 PM3/24/16
to grpc.io
Finally found out the issue... 
I was trying to run the helloworld server even before I built the grpc from source.


Solution: 
Prereq: 

Linux: [sudo] apt-get install build-essential autoconf libtool
MAC: [sudo] xcode-select --install

Build from source using the below commands
 $ git clone https://github.com/grpc/grpc.git
 $ cd grpc
 $ git submodule update --init
 $ make
 $ [sudo] make install


On Sunday, September 20, 2015 at 2:31:15 PM UTC-7, Nishant Agrawal wrote:

vikash2...@gmail.com

unread,
Aug 25, 2016, 1:29:16 AM8/25/16
to grpc.io
I am facing simir issue:

<<
git clone https://github.com/grpc/grpc.git
git submodule update --init
make install prefix=/home/ubuntu/GRPC_LOCAL/latest_grpc/grpc/build/
>>

Now it is failing with below error.
[CXX]     Compiling src/cpp/util/string_ref.cc
[CXX]     Compiling src/cpp/util/time.cc
[HOSTCXX] Compiling src/compiler/cpp_generator.cc
[HOSTCXX] Compiling src/compiler/csharp_generator.cc
In file included from src/compiler/csharp_generator.cc:40:0:
./src/compiler/csharp_generator.h:39:58: fatal error: google/protobuf/compiler/csharp/csharp_names.h: No such file or directory
 #include <google/protobuf/compiler/csharp/csharp_names.h>
                                                          ^
compilation terminated.
make: *** [/home/ubuntu/GRPC_LOCAL/latest_grpc/grpc/objs/opt/src/compiler/csharp_generator.o] Error 1

Paul Grosu

unread,
Aug 25, 2016, 1:38:38 AM8/25/16
to grpc.io, vikash2...@gmail.com
Did you run the make step by itself before performing make install, and do you install protobuf beforehand?

Vikash Kumar

unread,
Aug 25, 2016, 3:16:09 PM8/25/16
to Paul Grosu, grpc.io

I have ran make. Before the make install.
During make ...I have also seen same error.
Regarding protobuf it is already installed at my setup. Version 3.0.0

Regards
Vikash

Reply all
Reply to author
Forward
0 new messages