GRPC 编译报错集锦

问题:
[GRPC] Generating gRPC's protobuf service CC file from src/proto/grpc/channelz/channelz.proto
/data/source/grpc/bins/opt/grpc_cpp_plugin: symbol lookup error: /data/source/grpc/bins/opt/grpc_cpp_plugin: undefined symbol: _ZN6google8protobuf2io7Printer5PrintEPKc
--grpc_out: protoc-gen-grpc: Plugin failed with status code 127.
make: *** [/data/source/grpc/gens/src/proto/grpc/channelz/channelz.grpc.pb.cc] Error 1

解决:
存在两个ProtoBuf,导致冲突,删除一个
rm -f /usr/local/bin/protoc 重新安装就好了!

问题:
checking for grpc files in default path... not found
configure: error: Please reinstall the grpc distribution

解决:
要我重新安装gRpc , 这应该是没有安装C依赖库吧

分类: