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/
Pingback: How to build Apache Drill on Ubuntu 13.04 at ConfusedCoders
Truly a life-saver, thanks…
If I upgrade it from 2.4 to 2.5, do I need to remove 2.4 first before upgrade?
Thanks.
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.
Thanks a lot!
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)
Thanks ..
Helped me lot..awesome!!! Thanks
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.
Thanks a lot !
Thank you very much sir
Thanks. Time Saving Article.
Neat and clean, including the last step 6.
Thank you..!
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.
Really helpful thanks – works fine on Ubuntu 16.04 as well.
Hi,
Error:
sudo: ./configureĀ : commande introuvable