LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2004, 09:01 PM   #1
infidel
Member
 
Registered: Jun 2003
Location: Easley, SC, US
Distribution: Ubuntu 7.10, Mandrake 9.2
Posts: 91

Rep: Reputation: 15
Just curious: why aren't there more precompiled binaries?


Probably just another stupid newbie question, and one which serves no real purpose (other than to satisfy my own curiosity): why are so few applications released as compiled binaries?

Some background: I have a heck of a time compiling from source. There's something about my directory structure that most source doesn't seem to like; even when I _know_ that I have all of the required libraries installed, it's the rare app compiled from source that will run on my machine. RPMs are great, of course; but when I can find a Mandrake 9.2-specific RPM for the app I want, it's generally several releases behind current. Yet I've been happily downloading each milestone release of both Firefox and Thunderbird, dumping the tarballs into /home, and running the crap out of them-- because they're ready to go as soon as I unzip them.

I'm woefully unaware of most of the issues surrounding development, compilation, and execution of Linux applications (which is probably obvious just from the nature of this question). But I see so few ready-to-roll binaries, and they're such a convenience for newbs like me-- are there really so many differences amongst various distros (and variations thereof) that it just doesn't make sense for developers to release precompiled binaries? Or is it something else? I realize that part of it is probably because not every app lends itself to being distributed that way, just as I realize that compiling your own gives you maximum flexibility; and even installing an RPM (generally) makes the app available to all users on a system-- but on self-contained, single-user desktop machines like mine, precompiled binaries are killer.

What are the issues I'm missing? I'm not someone who's looking for the "easy way out" here, so I'd appreciate flamelessness-- I've committed to Linux, and as I learn more I'll be doing more for myself. In the meantime, though, precompiled binaries are cool! Please pardon my naivete, but this is something I'm genuinely curious about.

Thanks.
 
Old 06-15-2004, 09:19 PM   #2
mr666white
Member
 
Registered: Jun 2004
Location: Leeds, England
Distribution: Gentoo, IPCop
Posts: 54

Rep: Reputation: 15
You've answered you're own question. I'm sure you know that the same binary won't work on every computer out there. An example: I write a program in c, and distribute it on a website as source code. One file. I compile it to run on Red Hat based systems and distribute an rpm. And then a .deb for debian systems. By the time i've had a cup of coffee I realise that I now have to host maybe 10 times as much data. And being of limited resources, there is a finite number of distros i can build and test binarys for. Or i could leave the machine specific stuff to someone else.

There is, of course, an answer, roll on Mono......
 
Old 06-15-2004, 09:23 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"What are the issues I'm missing?"

A binary will probably only work on a system using the same version of glibc as the binary was compiled on. There are other less frequently encountered distribution dependencies. So if a developer wants to release a binary he has to compile a separate binary for each distribution. Developers simply pass this responsibility off to the distributions.

One thing that you can do to help the situation is to make binaries available that you had to compile in order to run the program on your distribution so that other people can use them. Then register the web page with Google. I have done this by posting the various rpms that I had to make when I ran Fedora. I also sent word to the developers and some of them put a link on their download site pointing to my Fedora rpms.

http://users.rcn.com/srstites/rpm.we...edora.rpm.html

One of these days I will get around to posting the programs that I had to compile for SuSE 9.1.

So you could help other people out by creating a web page where people can download your Mandrake 9.2 rpms.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 06-16-2004, 05:38 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In addition to what has already been said - if you're looking to build things from source it's necessary not only to have the runtime library installed but the headers files as well. These usually come in the <packagename>-devel packages. To run apps that use glib2 you need to have the glib2 package installed but to compile a glib2 program from source you need the glibc2-devel package.


Håkan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
Gcc - Precompiled rapidmaniac Linux - Software 3 05-01-2004 01:10 PM
Qt precompiled networkdevo Red Hat 1 08-30-2003 11:51 PM
i need precompiled phant0m Linux - Software 1 08-22-2003 08:31 AM
Slack precompiled binaries zeky Slackware 3 09-03-2002 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration