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

  • Post author:
  • Post category:其他



错误为: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







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





版权声明:本文为yl33489原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。