Protobuf cannot find shared libraries

Kshitiz Sharma picture Kshitiz Sharma · Aug 27, 2014 · Viewed 62.7k times · Source

I have installed protobuf by using following commands:

./configure
make
make check
make install

However when I run protoc I get following error:

protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory

Answer

Kshitiz Sharma picture Kshitiz Sharma · Aug 27, 2014
sudo ldconfig

or

export LD_LIBRARY_PATH=/usr/local/lib

should solve the problem.