Install google protocol buffers (protoc, protobuf) on CentOS 6 (linux)
Step 1. Download source code :
https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
Step 2. Extract :
$> tar -xzvf protobuf-2.6.1.tar.gz
Step 3. Build and install:
$> cd protobuf-2.6.1
$> ./configure
$> make
$> sudo make install
For old version 2.5.0
Step 1. Download source code :
https://code.google.com/p/protobuf/downloads/detail?name=protobuf-2.5.0.tar.bz2
update, repo was moved to:
https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
Step 2. Extract :
$> tar -xzvf protobuf-2.5.0.tar.gz
Step 3. Build and install:
$> cd protobuf-2.5.0
$> ./configure
$> make
$> sudo make install
Steps above did not work. Needs to be corrected.
Please share what you did to make it work on your system.
google code was migrated to github ergo the url changed. heres that latest
https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
Thanks!!
In Step 2: Extract
The filename needs to be changed from .bz2 to .gz ... and the tar command would be better as \"tar xzf filename.tar.gz\"
Thanks!