TransWikia.com

How to install libprotobuf?

Unix & Linux Asked by user1762571 on December 6, 2021

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

2 Answers

$ sudo ldconfig

should solve the problem.

Answered by lenik on December 6, 2021

Reinstall the two packages providing libprotobuf.so.8, libprotobuf-c.so.0

apt-get install --reinstall libprotobuf8 libprotobuf-c0

If Ubuntu sudo apt-get install --reinstall libprotobuf8 libprotobuf-c0

Answered by Knud Larsen on December 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP