Search code examples
protocol-buffersprotoclinkerd

unrecognized syntax identifier "proto3". This parser only recognizes "proto2" on Linkerd


I have cloned linkerd (https://github.com/linkerd) repo on my linux ubuntu, and installed protoc, version 2.5. When I try to compile the linkerd using the following command I get the error "unrecognized syntax identifier "proto3". This parser only recognizes "proto2".

command: ./sbt linkerd/compile


Solution

  • You need to install protoc version 3.x to compile proto3 files. Version 2.5 is over four years old.

    Many distros have Protobuf packages available for easy installation, or you can install from source as described here: https://github.com/google/protobuf/blob/master/src/README.md