Use the tar -zxf protobuf-2.5.0.tar.gz command to decompress and get the source code of protobuf-2.5.0,
cd protobuf-2.5.0 to enter the directory
If you want the output directory to be /home/work /protobuf/ after successful compilation, enter the following two commands:
./configure --prefix=/home/work /protobuf/
make && make install
After the compilation is successful, add export PATH= /home/work /protobuf/bin:$PATH to the environment variable
Finally, enter the protoc --version command. If libprotoc 2.5.0 is displayed, the installation is successful