LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-02-2004, 07:57 AM   #1
nazzymac
LQ Newbie
 
Registered: Oct 2003
Location: Jamaica
Posts: 27

Rep: Reputation: 15
Benifits of compling a program on bsd rather than getting a exicutable


whats the benifit of compiling a program on bsd or any type of unix os
rather than getting a executable
 
Old 04-02-2004, 01:37 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well in general, the benefit of compiling versuses getting a binary (by the way, all executables are not necessarily binary data, and all binary files are not necessarily exectuable) is that it will be more customized to it's environment. There might be special compiler options used by the compiler on your machine to work better with your OS/achitecture than just accepting a generic binary that is compatible.

In practice, there's usually very little difference. I've heard that benchmarks of Gentoo (a "compiling everything from source" OS) are little different than those of Debian (install from binary packages), and in some cases even worse.

If the defaults of the package are acceptable, it's probably easier to install from package. If you want to change the defaults, then you probably need to build from source. The *BSDs (well, Free|Net|Open) all have the package/ports system where you can build software from source, using predefined rules (the ports system). You can pass arguments to make in order to make changes from the default behavior.
 
Old 04-02-2004, 01:56 PM   #3
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
The other benefit to using the ports system: Dependencies. If you keep your ports up to date (quite easy with cvsup and portupgrade), you have very few issues installing from ports and you don't have to find depencies, it will download and install any dependency you have for a given app.
 
Old 04-02-2004, 02:59 PM   #4
nazzymac
LQ Newbie
 
Registered: Oct 2003
Location: Jamaica
Posts: 27

Original Poster
Rep: Reputation: 15
yeah i heard about gentoo but it takes for ever to compile stuff....
i think bsd is kool though.......thanks a lot guys
 
Old 04-02-2004, 03:24 PM   #5
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
There is a lot more than time that is important to think about. A good, managed, and updated ports system means you compile your apps based on your system (if you set the right flags in make.conf - and compile your own kernel - which is very easy to do in FreeBSD.) and also it handles how and where your applications are installed (you can always install using your own prefix). So when you go to uninstall or update, it knows where eveything is in a ports db.

The other thing is FreeBSD also has a package system for precompiled binaries. You can install them during OS installation and update them as easily as the ports system. But imo installing from ports is one quick way of installing apps ( I never ran into anything that took very long, unless it had a lot of dependencies and it was a fresh install.).

I personally would install source over a package, doesn't take much to type: make install clean and walk away for a little bit, or surf the net.
 
Old 04-02-2004, 04:04 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
People keep talking about the ports system as being a FreeBSD-only thing, but OpenBSD and NetBSD have it too!

I choose to build everything from ports on my OpenBSD and FreeBSD systems. For OpenBSD I have multiple boxen, so I build the port on one box and use the binary package to install on the others (the package that was built when I ran make in the ports system).
 
Old 04-02-2004, 04:10 PM   #7
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
True, I have never used OpenBSD or NetBSD yet. So I think of FreeBSD when thinking ports =)
 
  


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
how to start and wht r d benifits harmandeep kaur Linux - Newbie 3 07-01-2005 06:06 PM
Compling A New Kernel mullet Slackware 7 08-26-2004 05:04 PM
compling c++ LinuxTiro Programming 16 08-30-2003 06:04 AM
Kernal Compling??? SyntheticBlue Slackware 11 05-08-2003 03:51 PM
Choose Free BSD or Open BSD? Which one? explorer1979 *BSD 5 12-15-2002 12:26 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:52 AM.

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