How to install protocol buffer 2.5.0 on Ubuntu 13.04

Protocol buffer is a serialization format developed by Google. It is Interface driven and is useful for applications that communicate over the wire. Below are the steps for protocol buffer installation.

1. Download protocol buffer. Protocol buffer libs can be downloaded here. Download protocol buffer.

2. Check if g++ compiler is installed on box. Protocol buffer needs g++ compiler to be present on your box before it can be builded. This is a crisp post on how to install g++ compiler on your box. Install g++ compiler.

3. Extract the protocol buffer archive and switch to the extracted directory.

4. Inside the extracted directory hit the below commands to install protocol buffer. These may take a while, kindly be patient.

$ sudo ./configure
$ sudo make
$ sudo make check
$ sudo make install
$ protoc --version

5. Thats it. Protocol buffer version 2.5.0 is installed on your box.

6. Note: Sometimes the latest version of protocol version does not load up. So we can do it manually by this command

$ sudo ldconfig
$ protoc --version

Hope the small post was helpful to you. Cheers \m/

Yash Sharma is a Big Data & Machine Learning Engineer, A newbie OpenSource contributor, Plays guitar and enjoys teaching as part time hobby.
Talk to Yash about Distributed Systems and Data platform designs.


  1. Pingback: How to build Apache Drill on Ubuntu 13.04 at ConfusedCoders

  2. I have not tried that, I installed 2.5 directly. You can try installing directly (without removing 2.4) and let me know if you are getting any errors.

  3. Awesome it works – if you had already protoc 2.4.x installed (as with Ubuntu 13.10) you just need to uninstall it – sudo apt-get purge libprotoc – (even if you uninstall it after installing protoc 2.5, it will still work)

  4. Hi,
    I tried this. I have ububtu 13.10 instance. when i used protoc –version i got an error ,
    protoc: error while loading shared libraries: cannot open shared object file: No such file or direcotory.

    Can u help me please?
    Thanks in adv.

  5. protoc unable to install ubunut 16.04

    protoc: error while loading shared libraries: cannot open shared object file: No such file or directory


Leave a Reply

Your email address will not be published. Required fields are marked *