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/

16 thoughts on “How to install protocol buffer 2.5.0 on Ubuntu 13.04”

  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: libprotoc.so.8: 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

    Error:
    protoc: error while loading shared libraries: libprotoc.so.12: cannot open shared object file: No such file or directory

    Thanks.

Leave a Reply to Souad Cancel reply

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