views:

326

answers:

2

Hello guys, I'm working with protobuf and Linux. Where is it's compiler protoc. I've downloaded package from main site, compiled and installed it successfully but I can't find protoc to build my own format file. Where is it?

UPD Here is folder where I build protobuf:

aclocal.m4        depcomp                       Makefile.in
autogen.sh        editors                       missing
CHANGES.txt       examples                      protobuf-lite.pc
config.guess      generate_descriptor_proto.sh  protobuf-lite.pc.in
config.h          gtest                         protobuf.pc
config.h.in       install-sh                    protobuf.pc.in
config.log        INSTALL.txt                   python
config.status     java                          README.txt
config.sub        libtool                       src
configure         ltmain.sh                     stamp-h1
configure.ac      m4                            vsprojects
CONTRIBUTORS.txt  Makefile
COPYING.txt       Makefile.am

There isn't binary file I need.

+2  A: 

It's probably installed into /usr/local/bin

On Ubuntu at least, you can apt-get install protobuf-compiler instead.

From the INSTALL.txt:

Installation Names

By default, 'make install' will install the package's files in '/usr/local/bin', '/usr/local/man', etc. You can specify an installation prefix other than '/usr/local' by giving 'configure' the option '--prefix=PATH'.

daveb
Yeah... It was in /usr/local/lib. Thank you.
Ockonal
A: 

Also, if you are in fact on Ubuntu, then you can also fetch the source package from Debian unstable and rebuild them locally if you want packages that are more current than the last cutoff (which for Ubuntu 9.10 was some time late last summer). That way you end up with .deb packages and you preserve a normal upgrade path (rather than littering /usr/local with one-off installs).

Dirk Eddelbuettel