方法一:可以FQ
安装
下载https://github.com/google/protobuf/releases ##Source code (zip)##
./autogen.sh
./configure
make
make check
make install
卸载
which protoc
rm /usr/local/bin/protoc
查看版本:
protoc --version
方法二:不能FQ
去这里下载: https://github.com/google/protobuf/releases/tag/v2.5.0
安装步骤:(1)./configure (2)make (3)make check (4)make install