Problems Installing Kernel Source rpm in Fedora Core 5
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Problems Installing Kernel Source rpm in Fedora Core 5
Hello all,
I installed Fedora Core 5 & kernel version is 2.6.15-1.2054-FC5 i686While trying to run some code, i got an error "cannot find kernel source in /lib/modules/2.6.15-1.2054-FC5.
So i went ahead and installed kernel-2.6.15-1.2054-FC5.src.rpm.
rpm -ivh kernel-2.6.15-1.2054-FC5.src.rpm
After doing this, /lib/modules/2.6.15-1.2054-FC5/source points to build.
/lib/modules/2.6.15-1.2054-FC5.source -> build
/lib/modules/2.6.15-1.2054-FC5/build points to ../../../usr/src/kernels/2.6.15-1.2054-FC5-i686
rpm -ivh kernel-2.6.15-1.2054-FC5.src.rpm rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec
The source files were installed in '/usr/src/redhat/BUILD/kernel-2.6.15/
But when I run my code i still see the same error "cannot find kernel source in /lib/modules/2.6.15-1.2054-FC5.
When you build a .src.rpm, you do not end up with an installed rpm. What you get is a binary rpm somewhere in /usr/src/....., in a folder names RPMS (in uppercase letters). You then install that rpm in the usual maner.
Thx for ur reply.
I'm new to Linux.
In order to get this error fixed - "cannot find kernel source in /lib/modules/2.6.15-1.2054-FC5., what are the things i need to take care of?
I have tried some solutions but unfortunately they dont work.
From your previous posts, I see that you have run 'rpm -i' and 'rpmbuild' parts of working with .src.rpms. Now you need to go to /usr/src/redhat/RPMS and look down through the directories to find the rpm you made. Then you can 'rpm -i' your new rpm.
The place to look is something like /usr/src/redhat/RPMS/arch/i386 to find the rpm you made.
i'm doing a masters project on Honeynets. I'm sticking with FC5 just bcoz sebek tool (to capture attackers keystrokes) works with this version. Also i'm looking for vulnerabilities in the system so that i can capture attackers logs.
In this regard, can u give me suggestions for my previous post?
I ran a piece of code. Getting this error - In order to get this error fixed - "cannot find kernel source in /lib/modules/2.6.15-1.2054-FC5.,Can anyone pls tell me what are the things i need to take care of to overcome this error?
And steps on how to install and build RPMS will be very helpful.
I'm sticking with FC5 just bcoz sebek tool (to capture attackers keystrokes) works with this version.
I'm pretty much aware of what Sebek is, thanks. I just tried building Sebek Linux 2.6 Client 3.2.0b on CentOS-5 (custom 2.6.18 kernel) to see if it works and to help convince you you *can* migrate OK. If you get an error saying something like
Code:
net.c: error: ‘struct net_device’ has no member named ‘xmit_lock’
read this explanation about xmit_lock, edit xmit_lock references in Sebeks src/net.c, make clean, compile again. The build process ends OK and 'modinfo' sort of confirms that's a usable module. Could this convince you to move? If not then you'll have to concentrate on building the kernel using the link provided or How To Compile A Kernel - The Fedora Way if it's easier to read. The point is if you followed this or Simon Bridges doc after you 'rpm -bp kernel.spec' your source is in /usr/src/redhat/BUILD/kernel-2.6.15/somesubdirname. Say if you use the i386 version it will be /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i386 and you could (in theory) link that dir to /lib/modules/2.6.15-1.2054-FC5/build. BTW, where you say "While trying to run some code" what code are you talking about? Sebeks or your own?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.