Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

What package for Google protobuf and C++ on Debian?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
jonwil
Posts: 2
Joined: 2016-11-03 03:56

What package for Google protobuf and C++ on Debian?

#1 Post by jonwil »

I have a .proto file for Google GTFS-realtime data and I want to use it from a C++ app. I know you run it through a compiler and get C++ code out the other end that you then compile into your app but I cant find the right packages on Debian to use for this? What package(s) do I want to use to get the .proto-to-C++ compiler and what package(s) do I want to use to get whatever runtime bits are required to link with alongside the output of the .proto-to-C++ compiler when building my app?

I searched for protobuf in the debian package list but I see a lot of different packages and dont have a clue which one is the right one to use...

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: What package for Google protobuf and C++ on Debian?

#2 Post by GarryRicketson »

It kind of depends on which version of Debian you are using,
and what architecture .

Did you even try to do some searches ?
Ahh, yes, I see that you did, or say you did,

I searched for protobuf in the debian package list but I see a lot of different packages and dont have a clue which one is the right one to use...
Did you look here,
https://packages.debian.org/search?keywords=protobuf

I don't have a clue which one is the right one to use either, because
you did not bother to mention what version of Debian you use,
nor the architecture, but any way, below is a example,
of what I use.

This is just one package,
https://packages.debian.org/wheezy/protobuf-compiler
or here,
https://packages.debian.org/wheezy/i386 ... r/download
but :

If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.
You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:
deb http://ftp.de.debian.org/debian wheezy main
Replacing ftp.de.debian.org/debian with the mirror in question.
It is better to install the package, instead of download it, and you can use

Code: Select all

apt-get install protobuf-compiler
or aptitude, or synaptic.
NOTE: IMPORTANT, This is for Deeian Wheezy, i386,...that is what I use,
I can not guess, and am not psychic, I don't know what version of Debian
you are using, nor what kind of computer, etc.
You need to search for yourself, and find the correct package, for your specific
version and architecture.

What package for Google protobuf and C + on Debian?

First Hit :https://packages.debian.org/search?keywords=protobuf

jonwil
Posts: 2
Joined: 2016-11-03 03:56

Re: What package for Google protobuf and C++ on Debian?

#3 Post by jonwil »

Sorry, I should have said that I am looking for whatever the latest stable version is (Jessie I believe) on x86. The protobuf-compiler seems like what I need for compiling but is there a runtime package I need as well?
And yes I was looking for the package names to pass to apt-get.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: What package for Google protobuf and C++ on Debian?

#4 Post by dilberts_left_nut »

https://packages.debian.org/jessie/protobuf-compiler

The dependencies are installed automatically.
AdrianTM wrote:There's no hacker in my grandma...

Post Reply