centos7.6安装protobuf3.5.1

1. 下载压缩包,https://github.com/protocolbuffers/protobuf/releases/tag/v3.5.1

github下载地址: https://github.com/protocolbuffers/protobuf/releases/tag/v3.5.1

2.解压, tar zxvf protobuf-all-3.5.1.tar.gz.进入解压目录 cd protobuf-3.5.1/

3.安装依赖:sudo yum install autoconf  automake libtool

4.生成编译配置文件:./autogen.sh

5.运行配置脚本,指定编译器,./configure

6.编译:make

7.安装:make install

8.更新库:sudo ldconfig

9.测试:protoc --version

你可能感兴趣的:(centos7.6安装protobuf3.5.1)