Click to See Complete Forum and Search --> : kernel source


vxmine
02-02-2002, 08:54 PM
I am trying to load an nvidia driver for my gf3 but everytime I configure it i get a NVdriver module cannot be found. Well after some research I have discovered that in order to load the NVdriver module I have to have the kernel source? I am using RH7.2 and have installed 2.4.9-13 via the redhat update utility. I looked in the /usr/src and all that is there is redhat so I assume the update utility does not load your kernel source. Shouldn't my kernel sources be there also? Do I have to download them and put them there? The reason I am asking this is because I am trying to follow the nvidia how-to on evil3d website and he says the kernel source should be there before I install. Any help would be greatly appreciated

Thanks

scanez
02-02-2002, 09:40 PM
Try to find the source rpm for that kernel...i.e. kernel-2.4.9-13.src.rpm or something of that sort. If you can't find, you can try grabbing the source from kernel.org.

slapNUT
02-02-2002, 10:09 PM
And like scanez was saying once you find the rpm package then as root type this:
rpm -ivh /<path>/<to>/kernel-2.4.9-13.src.rpm
That will install the sources and you'll now have a directory:
/usr/src/linux-2.4.0 or 2.4.9
If there is not a /usr/src/linux -> /usr/src/linux-2.4.0 or 2.4.9 then you need to make the link:
ln -s /usr/src/linux-2.4.0 or 2.4.9 /usr/src/linux

vxmine
02-03-2002, 09:06 AM
Thanks..I will try that sometime today.