首先按照编译需要的插件

    1. yum install gcc gcc-c++ autoconf automake
    2. yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel

    安装完毕后,如果出现
    yum错误—-Running Transaction
    那么重启可以解决问题, reboot

    然后下载

    1. wget https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-cpp-3.7.1.tar.gz

    解压

    1. tar -xzvf protobuf-cpp-3.7.1.tar.gz

    然后编译

    1. cd protobuf-3.7.1
    2. ./configure && make

    这里会花费大概五六分钟
    当我们想要验证是否安装成功了。
    image.png