Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compilation needed for installing google protobuf?

I just want to be sure: if you want to use google protocol buffers I can find a binary for the compiler, but somehow it seems that I also need to compile the remaining source files. Is this true? I have a MinGW c compiler, will this do. Does anybody have a make file?

like image 602
Django Avatar asked Jun 10 '12 13:06

Django


People also ask

How do I install Python protobuf on Windows?

How to Install protobuf on Windows? Type "cmd" in the search bar and hit Enter to open the command line. Type “ pip install protobuf ” (without quotes) in the command line and hit Enter again. This installs protobuf for your default Python installation.


1 Answers

Usually the compiler is needed to compile the protobuf "schema" to a wrapper, that to be used in your code. So it is not an actual make/build process. Give some more details how will you use the proto files - i.e. what language is you project.

UPDATE: So it seems you don't have python-protobuf installed, or Python cannot find it.

Either install it using

apt-get install python-protobuf # for Ubuntu
yum install python-protobuf # for Fedora/Redhat

or

easy_install protobuf

or install it from source, as explained here: http://code.google.com/p/protobuf/issues/detail?id=235

like image 55
Tisho Avatar answered Nov 25 '22 22:11

Tisho