天天看点

ubuntu16.04更新安装protoc

背景

目的是为了使用tensorflow object detection API。但是ubuntu16.04默认安装的是protoc 2.6.1 不满足需求。需要更新protoc版本到3.4.1

安装步骤

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

  2. https://github.com/protocolbuffers/protobuf/releases

    下载3.4.1版本
  3. 解压然后

    ./configure

  4. make && make check && sudo make install

  5. sudo ldconfig