LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Kernel Headers (https://www.linuxquestions.org/questions/linux-newbie-8/installing-kernel-headers-214454/)

gadams33 08-06-2004 07:11 PM

Installing Kernel Headers
 
Hi all,
I am in the initial throes of getting my system up. According to the installation instructions for my video drivers (Intel 82845) I am to (and I quote):

Quote:

For Red Hat, insert CD 2, browse to /RedHat/RPMS/kernel-source(your kernel #).i386.rpm, and double-click the file to run (these are your kernel headers). Alternately, load your kernel config file, save the config, then run "make dep"
I am running Fedora 2, and haven't found this file for my current kernel (2.6.6-1.435.2.3) anywhere. Their "alternately" idea sounds good, but I haven't figured out how to do it.

Thanks,
Dan

valencequark 08-06-2004 07:54 PM

Re: Installing Kernel Headers
 
Quote:

Originally posted by gadams33
Hi all,
I am in the initial throes of getting my system up. According to the installation instructions for my video drivers (Intel 82845) I am to (and I quote):



I am running Fedora 2, and haven't found this file for my current kernel (2.6.6-1.435.2.3) anywhere. Their "alternately" idea sounds good, but I haven't figured out how to do it.

Thanks,
Dan

let me start off by saying that i don't have FC2, i have FC1 on two machines. ordinarily (read: RHx) one could use redhat-config-packages to install the kernel headers. however, this doesn't work for fedora, as it looks in the wrong location for rpm's.

here is what i would try (and it worked on FC1 earlier today):
mount each of your installation discs and (assuming your cdrom mounts to /mnt/cdrom) you can :
cd /mnt/cdrom/Fedora/RPMS

you can ls to see all of the rpm's available on the disc (hopefully one of them is the kernel-source-(xxx)rpm. if not, try another disc).

when you find the disc with the kernel-source-(blahblahblah).rpm, copy it to your home directory.

cd to your home directory, and do:
rpm -ivh kernel-source-(whatever).rpm

you will need root priv to do the last part.


you can check that everything installed by looking for the kernel headers under:

/usr/src

in that directory you should have a directory that is linux-2.(whatever your kernel is)


g'day

--vq


All times are GMT -5. The time now is 12:08 PM.