Protobuf找不到共享库 [英] Protobuf cannot find shared libraries
本文介绍了Protobuf找不到共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用以下命令安装了Protobuf:
./configure
make
make check
make install
但是,当我运行protoc
时,我收到以下错误:
protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory
推荐答案
sudo ldconfig
或
export LD_LIBRARY_PATH=/usr/local/lib
应该可以解决问题。
这篇关于Protobuf找不到共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文