1.去下载 ​​Protocol Buffers v3.6.0 Github​​ 选择一个语言版本

2.解压后,cd到目录

3.依次执行如下命令

$> cd protobuf-3.6.0
$> ./configure
$> make
$> sudo make install

4.最后,检查是否安装上了

$> which protoc

引用

​http://tech.yipp.ca/linux/install-google-protocol-buffers-linux/​