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 输出版本号成功

相关文章:

  • 2021-11-19
  • 2022-02-15
  • 2022-01-07
  • 2021-10-19
  • 2021-11-22
  • 2021-05-08
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案