Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a precompiled linux binary for protoc ( protocol buffers )?

My build server is linux based. I need protoc to integrate it to my ant based build system.

I use following in build.xml for same:

    <exec executable="tools/protoc.exe" failonerror="true">
        <arg value="--java_out=../protos/java/generated" />
        <arg value="--proto_path=../protos/proto" />
        <arg value="../protos/proto/*.proto" />
    </exec>

I found windows binary , but didn't find linux binary for protoc.

Any help to find one or build statically linked protoc binary would be nice.

like image 964
YoK Avatar asked Aug 03 '11 10:08

YoK


2 Answers

Have you tried just downloading the main protobuf project and following the installation instructions? I seem to remember it's pretty straightforward if you only need the binary:

$ ./autogen.sh
$ ./configure
$ make

(You probably don't need make install in this case, if you only need the protoc binary. Just find out where it's been built and copy it.)

like image 120
Jon Skeet Avatar answered Oct 31 '22 03:10

Jon Skeet


Precompiled binaries for the latest release are on the official releases page on GitHub. Previous versions can be found on the Maven repository.

like image 43
Ben Avatar answered Oct 31 '22 02:10

Ben