Protobuf cannot find shared libraries

I installed protobuf using the following commands:

./configure make make check make install 

However, when I run protoc , I get the following error:

 protoc: error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory 
+58
protocol-buffers
Aug 27 '14 at 3:56 on
source share
4 answers
 sudo ldconfig 

or

 export LD_LIBRARY_PATH=/usr/local/lib 

should solve the problem.

+203
Aug 27 '14 at 3:56 on
source share
— -

This problem can be solved by following these steps:

  • vim / etc / ld.so.conf
  • / usr / local / lib (add it to .conf)
+5
Mar 27 '15 at 2:51
source share

This problem can be solved by following these steps:

 sudo make uninstall sudo make distclean sudo make clean ./configure --prefix=/usr 

This clears the current installation and installs protobuf in / usr. Run ldconfig to update ld.so.cache, making sure / usr / local / lib is specified in /etc/ld.so.conf. i.e. Change /etc/ld.so.conf and add / usr / local / lib to it and run ldconfig

+2
Jan 27 '15 at 18:58
source share

You can also use $ sudo ldconfig # refresh shared library cache. as indicated on the installation page

0
May 16 '19 at 21:02
source share



All Articles