LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Kernel srpm problem (https://www.linuxquestions.org/questions/linux-newbie-8/installing-kernel-srpm-problem-390060/)

iansoundz 12-07-2005 01:07 AM

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. 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...

titopoquito 12-07-2005 08:52 AM

Just my 2 cents:

I guess you are logged in as root while you try to do step 2. How are logged in? If you changed to root in a terminal or virtual console, did you change there with "su -" (su[space][minus sign]). Maybe it's just a problem that tar, perl and gcc are not in your $PATH variable?

iansoundz 12-07-2005 09:52 AM

They are in my path and I am logged in as root. ANyone else have any ideas? Remember, all I wasnt is a /usr/src/linux-2.6.9-blah directory tree. Day #13...


All times are GMT -5. The time now is 06:55 PM.