LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2006, 10:26 PM   #1
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Rep: Reputation: 30
Pros/Cons: Source vs. Binary


Question: What are the advantages/disadvantages to compiling from source/binary?

Background: Question arose while messing around with Gentoo after using Slackware on and off for a few months. After spending a good 12hrs compiling X and Gnome, I'm wondering if the optimization is worth it compared to a 10min (or less) tgz package install?

NOTE:
I did a search, and--feel free to call me lazy--after 5 pages of similar posts that never fully addressed this issue, I felt that it might be worth it to make a more solid post (perhaps a sticky?). If there is already a well-known post addressing this exact issue, my apologies.

Thank you very much in advance.

Sincerely,
Galen

Last edited by DreameR-X; 03-16-2006 at 10:29 PM.
 
Old 03-16-2006, 10:30 PM   #2
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 31
source will give you a final version that is optimized for your system. The binaries will be compiled for some other hardware specification and therefore will run best with that configuration but will work fairly well with your system. It will take more time and probably be more difficult but will give a better result. Also sometimes you may have no choice. If you have a system like LFS you must have everything compiled from source. Sometimes the binaries are not availble which would be another reason to go with source
 
Old 03-16-2006, 10:41 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
From my experience, the benefits of compiling from source are not that huge - it can be quicker just to install a binary package, and start using the program straight away, rather than wait 10 hours for Openoffice to compile, just to save 1 second on the startup time.

Just my 2c
--Ian
 
Old 03-16-2006, 11:03 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
My attitude is that there is so much to learn about the efficient administration of a Linux system that we really don't have time to compile everything. Little situations arise regularly that require the compilation of source for a specific needed program, so one needs to be able to do it, but everything is total overkill.

The exception is for a person who wants to do advanced programming or high level system maintenance. Such a person really needs to know the details of why his OS works the way it does.
 
Old 03-16-2006, 11:26 PM   #5
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 30
Thanks guys.

rickh: I don't quite see how compiling from source lets an administrator understand his system more carefully: the scripting goes by so fast that I assume most Gentoo/BSD users just watch movies/do something else while it's compiling. It seems like using the "emerge --pretend" or "installpkg --ask" would be more useful to an administrator--at least from what I understand.

Cheers,
Galen
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pros/cons of getting a G5 Tomasfuego Linux - Hardware 4 06-07-2005 04:53 AM
Linux pros and cons thrix General 18 11-26-2004 07:47 PM
pros/cons of Distributions Surfmonkey Linux - Newbie 1 11-26-2003 01:46 AM
Gentoo: Pros and Cons AgtSkippy Linux - Distributions 5 07-12-2003 10:15 AM
Pros And Cons Of Linux Oliver_Bell Linux - Newbie 37 05-14-2003 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 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