Protobuff installation in Linux

Pre Installation Tasks

Remove older version of protobuff before installing newer version

$ sudo apt-get remove protobuf-compiler
$ sudo ldconfig
$ sudo apt-get install g++ (if not already installed)
Confirm g++ installation:
$ g++ --version

Installation Tasks


$ cd ~/Downloads (or where ever you want store)
$ wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
$ tar xzf protobuf-2.5.0.tar.gz
$ cd protobuf-2.5.0
$ ./configure
$ make
$ sudo make install

Post Installation Tasks


$ sudo ldconfig
Confirm installation:
$ protoc --version