Alex Rivera | Logout

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

Asked 2011-08-03T10:11:57.563
9

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.

Edit
Report

1 Answer

7

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.)

answered 2011-08-03T10:16:55.030

Your Answer