Install protobuf 2.5 on Ubuntu

Check which version you have

You can use synaptic package manager for finding it

If you want to install manually

Copy paste in some script below commands

sudo apt-get install build-essential
mkdir /tmp/protobuf_install
cd /tmp/protobuf_install
wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
tar xzvf protobuf-2.5.0.tar.gz
cd  protobuf-2.5.0
./configure
make
make check
sudo make install
sudo ldconfig
protoc --version 


Check the installed version

$ protoc --version
libprotoc 2.5.0



Why we need ldconfig read link below
http://code.google.com/p/protobuf/issues/detail?id=213 

Related error searches

[DEBUG] protoc: error while loading shared libraries: libprotoc.so.8:
protoc: error while loading shared libraries: 
 
[DEBUG]  libprotobuf.so.6: cannot open shared 
object file: No such file or directory
 
Cannot find `protoc` command 
 
If you came to this page with above error search then please do
 
sudo ldconfig
 
The details are present on link above
 
 

No comments:

Post a Comment

Please share your views and comments below.

Thank You.