编译时protobuf报错的问题(error with libprotobuf.so.8)

来源:互联网 发布:淘宝代销什么比较好 编辑:程序博客网 时间:2024/06/05 01:50

错误为:error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory

说明你使用的protobuf要么是没有编译过,所以找不到对应的库文件,要么就是您编译之后的安装路径没有假如到配置中所以报错。

如果是第一种,请先下载protobuf-2.5.0,我已经上传到网盘http://pan.baidu.com/s/1pKAgqp1

下载包后解压并安装./configure  make

如果是第二种情况:

则需要创建新文件:/etc/ld.so.conf.d/libprotobuf.conf ,然后在其中加入内容:/usr/local/lib

再看下是否已经解决了该问题

阅读全文
0 0
原创粉丝点击