protocol-buffers

Protobuf cannot find shared libraries


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

Solution

  • sudo ldconfig
    

    or

    export LD_LIBRARY_PATH=/usr/local/lib
    

    should solve the problem.