Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.