LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-24-2007, 11:12 PM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Thumbs up Source Rpm Program cannot Install


Hello all Linux expert, i truly new to Linux. Few day ago, i try to install some software ended with src.rpm.

The terminal told me that cannot create /usr/src file. Basically, i have Selinux enabled and similar program installed. Moreover, i also secure the the root login which in /etc/securetty .

I installed in run-level 5.

I hope this all information can help you and me to solve this problem.

Another questions is i want to installed a program but need kernel source to build it which noted in Read me file. How to do this ?

Thanks for your help.

Your help is greatly appreciated by me and others.
 
Old 06-24-2007, 11:33 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
scr.rpm is a source rpm. You cannot run it. You have to build it first. I would go back to wherever you got the src.rpm and get the regular rpm.

In Fedora if you want to compile stuff that has dependenceys you need the -devel version of that dependency. In this case kernel-devel is required. Be aware that every time you upgrade the kernel you will need to upgrade the kernel-devel.
 
Old 06-26-2007, 01:46 AM   #3
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
What is kernel -devel ?

Thanks.
 
Old 06-26-2007, 02:03 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
kernel-devel(no spaces)

The best answer probably come from yum info kernel-devel:

Name : kernel-devel
Arch : i686
Version: 2.6.21
Release: 1.3228.fc7
Size : 14 M
Repo : installed
Summary: Development package for building kernel modules to match the kernel.

Description:
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.
 
Old 06-27-2007, 10:05 PM   #5
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
How to build the src.rpm file ?

Thanks for lazlow helps.
 
Old 06-27-2007, 10:42 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Peter

Unless you have an exceptions good reason it is not worth the effort. Just install the binary. It can get complicated.
 
Old 06-28-2007, 10:15 PM   #7
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Why u say so ? I could not understand.

I just want to learn how to compile the source rpm and after i will discard this techniques.

Your explanation is greatly appreciated by me and others.
 
Old 06-29-2007, 06:27 AM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
A .src.rpm contains a minimum of two files: a .tar.gz (the source code) and a .spec (the instructions for rpm to build the source code into an installable binary .rpm).

When the .src.rpm is installed, it places the .tar.gz in /usr/src/.../SOURCES (the ... will be different in each distro. In RedHat, it's redhat; in SuSE it's packages; and so on).

The .spec file is placed in /usr/src/.../SPECS.

The usual procedure is to cd to /usr/src/.../SPECS, and run the command 'rpmbuild <filename>.spec, where <filename> is the name of the .spec file.

When the compiling is done, assuming no errors, the binary .rpm is placed in /usr/src/.../RPMS/arch/i386 (or one of the other folders in /arch). That's the .rpm to install. It's built for your system.
 
  


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
Install from source over rpm rocksniffer Linux - Software 1 01-18-2006 05:10 PM
How to Install Source RPM omeryasin Linux - Software 9 10-29-2005 06:10 AM
How do i install a program (rpm or tar.gz) scripts Linux - Newbie 15 12-26-2004 04:25 AM
Upgrading OpenSSL rpm install to a source install userini Linux - Software 3 06-05-2004 10:23 AM
Can't install .rpm--try and asks for program to use... jsykes_2000 Linux - Newbie 4 05-17-2002 11:28 PM

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

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