LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is installing the kernel source? (http://www.linuxquestions.org/questions/linux-newbie-8/what-is-installing-the-kernel-source-435147/)

deadseasquirrel 04-14-2006 01:23 PM

What is installing the kernel source?
 
I'm trying to install a new Nvidia driver in my Fedora Core 5 box. And it is tellling me that I need to re-compile my kernel source, I have no idea what that means, but I think it means I have to copy the source file somewhere and put it in usr/src directory with some sort of symbolic link. And somebody just explain to me what the details are and what it's all about and how I would go about "installing" the kernel source so that I can proceed with this installation. Thank you.

SlackerDex 04-14-2006 01:27 PM

It means just that, you have to recompile your kernel(I think). Head to the kernel directory and configure your kernel to include the Nvidia Driver (make xconfig ; make gconfig) then do a make bzImage ; make modules ; make modules_install, copy the bzImage(vmlinuz-2.x) and the System.map(System.map-2.x) and Config(Config-2.x) to boot and do symbolic links to System.map and config. All that is left is to update your bootloader.

Nylex 04-14-2006 01:56 PM

You don't need to recompile the kernel. Installing the kernel source means exactly that, installing the package that contains the source code for the kernel you're running. Not sure how to do this specifically in Fedora, but I imagine you can get the package (which is probably called kernel-source-<version>, or similar) via YUM or perhaps it's included on your CDs. Edit: you'll possibly need the kernel headers package installed as well.

Dragineez 04-14-2006 05:39 PM

What He Said
 
Nylex is right, you don't need to recompile the kernel - just get the kernel source. The nVidia installer will quite merrily compile the kernel module you need, but you need the compiler and the kernel source to do it. You probably have the compiler, or the installer would have complained about that first.

yum install kernel-source-`uname -r`
yum install kernel-dev-`uname -r`

I think will work.

deadseasquirrel 04-14-2006 09:57 PM

Ok I'm a real newbie...so I was under the impression that I would have to copy over some .rpm and .h file over to a specific directory from one of my installation disc. But where do I do that? I am trying to find where all the .rpms are and I can't. This may seem simple but I'm still trying to understand the fundamentals of linux. can somebody give me a little more hand holding? I just tried the commands above and it seems like it is looking for the header file.

"Please ask your sysadmin to update the headers on this system"

Nylex 04-15-2006 02:00 AM

Did you try running them as root?

Jzarecta 04-15-2006 02:27 AM

Quote:

Originally Posted by deadseasquirrel
Ok I'm a real newbie...so I was under the impression that I would have to copy over some .rpm and .h file over to a specific directory from one of my installation disc. But where do I do that? I am trying to find where all the .rpms are and I can't. This may seem simple but I'm still trying to understand the fundamentals of linux. can somebody give me a little more hand holding? I just tried the commands above and it seems like it is looking for the header file.

"Please ask your sysadmin to update the headers on this system"

As a regular user you cant install software, that means no rpm nor tar.gz. You need to be root to do this.

downloading the kernel-sources-....rpm

Becoming root you will need the command 'su', open a terminal and type su, then put the password from root. And finally use the command to install the rpm.

rpm -ivh kernel-sources....rpm

This will install the package

Bruce Hill 04-16-2006 04:57 AM

Even after getting that far, it seems that Nvidia drivers might not work with your FC5 distro.

deadseasquirrel 04-29-2006 07:43 AM

I typed exactly that "yum install kernel-source-`uname -r`" and it looked like it did install something but still when I try to install the nvidia drivers it complains. I'm not sure where to look to see if the kernel source installed and I've searched quite a bit for this task and I still can't figure it out.

reddazz 04-29-2006 07:52 AM

Add the livna repo to your yum sources. Instructions for adding the repo are available here. After thats done, use yum or yumex to install the driver.


All times are GMT -5. The time now is 05:18 AM.