LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 12-07-2005, 09:54 AM   #1
iansoundz
Member
 
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Rep: Reputation: 15
Installing Kernel srpm problem


This is day # 12 of me trying to get a /usr/src/linux-2.6.9-22.EL directory tree. I am using CentOS 4.1 with kernel version 2.6.9-11.EL. To my unpleasant surprise, I discovered that for some reason CentOS decided to exclude the /usr/src/linux-2.6.9-22.EL directory tree. So far I downloaded kernel-2.6.9-22.EL.src.rpm and did this:

1.) rpm -ivh kernel-2.6.9-22.EL.src.rpm
2.) rpmbuild -bp --target=i686 kernel-2.6.spec in /usr/src/redhat/SPECS

I immediately get this:

Building target platforms: i686
Building for target i686
error: Failed build dependencies:

sh-utils is needed by kernel-2.6.9-22.EL.i686
tar is needed by kernel-2.6.9-22.EL.i686
perl is needed by kernel-2.6.9-22.EL.i686
gnupg is needed by kernel-2.6.9-22.EL.i686
gcc >= 2.96-98 is needed by kernel-2.6.9-22.EL.i686
redhat-rpm-config is needed by kernel-2.6.9-22.EL.i686

So now I am really confused. I have tar, perl, and gcc version 3.4.3 so I have no clue as to why rpm build script thinks I don't have them when I very much do have them. Aaaaagh!

I have no idea what is going on. What can I do? I can only assume that I should download and install sh-utils, gnupg, and redhat-rpm-config but what about tar, perl, and gcc is really there. They are all in my path too (just in case you think they aren't). If it turns out that I can't get this going, does anyone have any idea how I can get a /usr/src/linux-2.6.9-blah directory tree?!? Any help is always appreciated...

Last edited by iansoundz; 12-07-2005 at 09:55 AM.
 
Old 12-07-2005, 10:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
Check the spec and make sure what versions its calling for. And if you know for sure these dependencies are installed, just remove them from the spec file so it doesn't complain about them, or just simply do a --nodeps option when building the RPM..
 
Old 12-07-2005, 10:34 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
I'm now closing this thread since you double posted. Refer to the one in Linux Newbie to followup and reply to. And please read our rules and guidelines at http://www.linuxquestions.org/rules.php
 
  


Closed Thread


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 02:55 PM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 09:48 PM
Installing Kernel srpm problem iansoundz Linux - Newbie 2 12-07-2005 09:52 AM
problem after installing kernel woodland56 Debian 2 09-16-2005 02:20 PM
Recompile Kernel – SRPM – athlon or i686 ? lets-eat-gary Mandriva 1 12-23-2004 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:10 AM.

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