Search code examples
pythonprotocol-buffersprotoc

How to properly install Protocol Compiler for pre-built binary?


I tried many times installing, "protoc-3.2.0-windows-x86_64.exe", but it doesn't get installed. When I double-click on it, there would be no screen displayed. I tried opening it through command line interface. I got a message as "Missing Input File". Protoc Installation Error on Command Prompt

What is that missing input file? What should I do now? Please respond to my problem at the earliest!


Solution

  • protoc-3.2.0-windows-x86_64.exe is the Protocol Compiler. It is not an installer. This is the program itself.

    This program is designed to run on the command line. It takes a .proto file as input (which you specify on the command line) and it outputs code in a variety of languages. It says "Missing input file" because you didn't specify a .proto file.

    To "install" it, copy the .exe file to wherever you want to run it from. You may want to rename it to protoc.exe, and place it somewhere in your PATH, so that the command you have to type becomes just protoc.