5

I'd like to use the protoc command to generate java files

I've been following the instructions in the README from github https://github.com/protocolbuffers/protobuf but it just tells you to download the zip file and that the "binary" is already included. However, after downloading the latest (and a couple other versions) and unzipping the files, I can't find the "protoc" binary.

Is there some other missing instruction that i'm supposed to follow?

P.S. i'm using Mac OS X

David T.
  • 22,301
  • 23
  • 71
  • 123
  • There seems to be no proper build for JAVA on Mac OS as per this page.https://github.com/protocolbuffers/protobuf – P.W Oct 09 '18 at 08:34
  • See : https://github.com/protocolbuffers/protobuf/issues/3490 - btw, I also host an online runnable build of protoc on my site here: https://protogen.marcgravell.com – Marc Gravell Oct 09 '18 at 10:24

2 Answers2

3

Open https://github.com/protocolbuffers/protobuf/releases and look for the binary for 32- or 64-bit OS X:

  • protoc-3.6.1-osx-x86_32.zip
  • protoc-3.6.1-osx-x86_64.zip
Roman T
  • 135
  • 1
  • 9
0

I had to install it using homebrew

something like this answer: Installing Google Protocol Buffers on mac

David T.
  • 22,301
  • 23
  • 71
  • 123