Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install libprotobuf?

By mistake i have deleted these libraries. I couldn't find a right way to reinstall it.

/usr/lib/x86_64-linux-gnu/libprotobuf.so.8
/usr/lib/x86_64-linux-gnu/libprotobuf-c.so.0

To fix it, i tried to follow these instructions, https://github.com/google/protobuf/blob/master/src/README.md but ended up with different version. Now while compiling my code it throws this error. How can i get my previous version back?

error while loading shared libraries: libprotoc.so.8: cannot open shared object file: No such file or directory
like image 243
user1762571 Avatar asked Jul 25 '26 15:07

user1762571


1 Answers

Unknown OS: Installing the three packages providing libprotobuf.so.8, libprotobuf-c.so.0, libprotoc.so.8 →

sudo apt install --reinstall libprotobuf8 libprotobuf-c0 libprotoc8

HOWTO decide a package :

sudo apt install apt-file 
apt-file search libprotoc.so.8

http://packages.ubuntu.com/search?keywords=libprotoc&searchon=names

like image 144
Knud Larsen Avatar answered Jul 27 '26 07:07

Knud Larsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!