Protobuf or Protocol buffers are a mechanism for serializing structured data in a faster, and simpler way. It is language-neutral, platform-neutral and extensible.
To install Protobuf in Ubuntu, you need to clone its GIT repository and compile it. Below are the list of commands to get the installation of Protobuf done in Ubuntu.
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/protocolbuffers/protobuf
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
Code language: Bash (bash)
If you also need the python bindings to protobuf, then install it using the below pip command.
pip install protobuf