天天看點

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