LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-01-2003, 10:42 PM   #1
Umbrella
Member
 
Registered: Jul 2003
Location: U.S.A. FL
Distribution: RH 9
Posts: 45

Rep: Reputation: 15
Question Self Compile VS RPMs


I'v just about get this RPM thing down, guess that is because everything I'v wanted is a *.rpm but when I download these files I see a .src.rpm as well come to find this is a source file so you can compile it yourself. Is this true If so how do I go about doing it? (It would be nice so I don't have to mess with dependencies)
 
Old 08-01-2003, 10:53 PM   #2
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
i like using the binary rpms first, but if i cant, then i compile the sources. compiling varies depending on the program, but usually you go to the directory of the sources and type "make" (no quotes) witch usually works. you should look in the readme first, however.
 
Old 08-02-2003, 12:07 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i see your distro is redhat 9 so this is the command your looking for:
rpmbuild --rebuild nameofpackage.src.rpm
/usr/src/redhat/SOURCES is the default install directory for the source rpm.
 
Old 08-02-2003, 03:27 PM   #4
Umbrella
Member
 
Registered: Jul 2003
Location: U.S.A. FL
Distribution: RH 9
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks DrOzz
 
Old 08-02-2003, 05:36 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
RPM files are ok but you don't get any optimizations for your system--Pentium 4 don't do well with RPM files. Also some RPM files don't come with special files that other programs need. Compiling a program takes care of those problems assuming you read the documentation and read through the ./configure --help. Uninstalling RPM files are a pain in the ass. They always depend on other RPM files. For a compiled program, you just delete its directory and the symbolic to the program.

For the RPM dependences problems, you can install apt-get or urpmi.

I like using source code first. If it doesn't work, I guess I had to tweak the source code or download the RPM file. For my library files, I use RPM files because I don't have a choice with my distribution. If I installed Slackware or FreeBSD, I would be compiling the library files. Though after a four months of using LINUX, I'm still a . Maybe in a few years, I'll install either Slackware or FreeBSD.
 
  


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
Sony Eyetoy drivers for FC3. Im new and dont know how to compile & i cant find rpms Nike Static Linux - Hardware 4 04-24-2006 01:37 PM
how to intall rpms from .tar.bz and .tar.gz and .src.rpms gadekishore Linux - Software 13 12-26-2005 02:57 PM
Can you determine an RPMs compile options? DualQuad Fedora 2 10-12-2005 06:47 AM
what is the best way to install LAMP: compile or RPMs? learnfast Linux - Newbie 4 04-28-2005 07:50 PM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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