系统 ubuntu 16.04, 将 rpm 包通过 alien 转化为 deb 包之后安装.
cd 到 /opt/baidunetdisk/ 之下, 运行 ./baidunetdisk, 得到如下错误:
[libprotobuf FATAL google/protobuf/stubs/
common.cc:61] This program requires version 3.3.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. 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 "./protobuf/
cms_protocol.pb.cc".)
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): This program requires version 3.3.0 of the Protocol Buffer runtime library, but the installed version is 2.6.1. Please update your library. 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 "./protobuf/
cms_protocol.pb.cc".)
Aborted (core dumped)
运行 protoc --version 得到版本为 2.6.1, 在
https://github.com/protocolbuffers/protobuf/releases 页面中下载 protoc-3.8.9-linux-x86_64.zip, 解压缩后将 protoc 替换掉原有的 /usr/bin/protoc
再次运行 protoc --version 得到版本为 3.8.0, 尝试启动 baidunetdisk, 还是得到同样的错误.
我还尝试了添加 ppa 源, 安装 protoc 3.1.0(双版本并存), 但是 baidunetdisk 任然识别为 2.6.1. 我想要移除 protoc 2.6.1, 发现有太多程序的依赖会被打破, 所以没敢移除.
有没有大佬知道这个问题怎么解决啊.