Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davidabram/d19d5693437182ad94602b2d5d4482c3 to your computer and use it in GitHub Desktop.

Select an option

Save davidabram/d19d5693437182ad94602b2d5d4482c3 to your computer and use it in GitHub Desktop.

Revisions

  1. @ryujaehun ryujaehun created this gist Aug 19, 2018.
    16 changes: 16 additions & 0 deletions Install protobuf 3.6.1 on Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #! /bin/bash
    # Make sure you grab the latest version
    curl -OL https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
    https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
    # Unzip
    unzip protoc-3.6.1-linux-x86_64.zip -d protoc3

    # Move protoc to /usr/local/bin/
    sudo mv protoc3/bin/* /usr/local/bin/

    # Move protoc3/include to /usr/local/include/
    sudo mv protoc3/include/* /usr/local/include/

    # Optional: change owner
    sudo chown $USER /usr/local/bin/protoc
    sudo chown -R $USER /usr/local/include/google