本文介绍了需要帮助在Ubuntu 16.04上安装C ++ grpc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过执行以下命令来安装grpc
I tried to install grpc by executing the following
git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init
make
但是当我运行make时,我收到消息"#error此文件是由protoc的较旧版本生成的".
But when I run make, I get the message "#error This file was generated by an older version of protoc which is"
但是,我已经安装了最新的协议...
But, I have the latest protoc installed ...
/usr/bin/protoc --version
libprotoc 3.2.0
推荐答案
发布我自己问题的答案...
当我在运行安装之前删除第三方protobuf文件时,此问题已得到解决.
Posting an answer to my own question ...
The issue gets resolved when I remove the third party protobuf files before running install.
rm -rf third_party/protobuf
我不确定这为什么行得通...
I am not exactly sure why this works though ...
这篇关于需要帮助在Ubuntu 16.04上安装C ++ grpc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!