UBUNTU16.04卸载安装protobuf

1.卸载

  sudo apt-get remove libprotobuf-dev

  which protoc

     然后删除路径即可

 

2.安装

sudo apt-get install autoconf automake libtool curl make g++ unzip

 

git clone -b v3.6.1 https://github.com/protocolbuffers/protobuf.git

 

cd protobuf

git submodule update --init --recursive

./autogen.sh

./configure

make

make check

sudo make install

sudo ldconfig

protoc --version 输出版本号成功

posted @ 2019-08-11 11:39  penuel  阅读(6115)  评论(0编辑  收藏  举报