Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 
like image 444
Kshitiz Sharma Avatar asked Aug 27 '14 03:08

Kshitiz Sharma


Video Answer


2 Answers

sudo ldconfig 

or

export LD_LIBRARY_PATH=/usr/local/lib 

should solve the problem.

like image 181
Kshitiz Sharma Avatar answered Oct 15 '22 01:10

Kshitiz Sharma


You can also use

$ sudo ldconfig # refresh shared library cache. 

as stated at the installation page

like image 41
Abdelrahman Yosry Avatar answered Oct 15 '22 03:10

Abdelrahman Yosry