即使我安装了正确的 libprotoc 版本,也会看到 libprotobuf 致命错误 [英] libprotobuf FATAL Error seen even though I have correct libprotoc version installed

查看:84
本文介绍了即使我安装了正确的 libprotoc 版本,也会看到 libprotobuf 致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个名为 remy 的基于 C++ 的软件,它使用 libprotoc.当我运行该工具时,我收到以下错误,抱怨安装的 Protocol Buffer 版本,即使我安装了正确的版本.有人可以帮助解决这个问题.我正在 Ubuntu 16.04.1 上工作.

I have installed a C++ based software called remy which uses libprotoc. When I run the tool I get the following error complaining about the installed Protocol Buffer version even though I have the correct one installed. Can someone kindly help resolve the issue.I am working on Ubuntu 16.04.1.

$./remy2.tcl
[libprotobuf FATAL google/protobuf/stubs/common.cc:72] 此程序是针对 Protocol Buffer 运行时库的 2.4.1 版本编译的,该版本与已安装的版本 (2.6.1) 不兼容. 联系程序作者以获取更新.如果您自己编译程序,请确保您的头文件来自与链接时库相同版本的 Protocol Buffers.(版本验证在tcp/remy/dna.pb.cc"中失败.)
在抛出google::protobuf::FatalException"实例后调用终止what():此程序是针对 Protocol Buffer 运行时库的 2.4.1 版编译的,该版本与已安装的版本 (2.6.1) 不兼容.联系程序作者以获取更新.如果您自己编译程序,请确保您的头文件来自与链接时库相同版本的 Protocol Buffers.(版本验证在tcp/remy/dna.pb.cc"中失败.)
分段错误(核心转储)

$./remy2.tcl
[libprotobuf FATAL google/protobuf/stubs/common.cc:72] This program was compiled against version 2.4.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (2.6.1). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "tcp/remy/dna.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException' what(): This program was compiled against version 2.4.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (2.6.1). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "tcp/remy/dna.pb.cc".)
Segmentation fault (core dumped)

$ protoc --version
libprotoc 2.4.1

推荐答案

我尝试卸载 2.4.1 并重新安装.但在此之前,我删除了/usr/lib/x86_64-linux-gnu/下的 libprotobuf* 文件.这似乎已经解决了问题

I tried uninstalling 2.4.1 and reinstalling it again. But before that I removed the libprotobuf* files under /usr/lib/x86_64-linux-gnu/ . This seems to have resolved the issue

这篇关于即使我安装了正确的 libprotoc 版本,也会看到 libprotobuf 致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆