LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2004, 01:07 PM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
Any benifit of compiling the code over rpm?


I know rpm make it a lot easier to setup since it's "presetup." what benifit do I get from compiling the code instead?
 
Old 03-12-2004, 01:37 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
RPMs are compiled against a particular system. If you have a different setup than the one on which the program was compiled, there is a (slightly) greater chance of instability in the application.
 
Old 03-12-2004, 01:38 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Sometimes you have additional options. For example with Mplayer you can choose whether you want a graphical interface. If not then you can opt not to compile that into the program. Also, if a program has the option to use different libraries to do something (say, it could choose to use either SDL or OpenAL for sound support) then if you compile the code yourself you can opt for whichever you prefer (or have installed). With RPMs you're stuck with whatever compile options the person who created the RPM chose.
 
Old 03-12-2004, 01:53 PM   #4
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
You might also see speed increases if, for example, the rpm was compiled for a Pentium, and you compile for a Pentium 4. I don't know the details, but my understanding is that the Pentium 4 has some instructions that can perform certain operations faster than the original Pentium. If you don't compile with the option to use those instructions, you'll just be running with the old Pentium instruction set. This is the difference between rpms labeled i386 and i686.

(Correct me if I'm wrong, anyone, or just provide more details.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPM vs compiling from Source Code ceci2 Linux - Enterprise 4 03-15-2005 04:58 PM
compiling C code vose Programming 29 10-08-2004 08:28 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 08:06 PM
Compiling Kernel Code vbhatia_81 Programming 1 06-21-2004 07:53 AM
compiling code ripmaster Linux - Software 2 03-06-2004 10:07 PM


All times are GMT -5. The time now is 12:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration