LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Nvidia FC4 and kernel source (https://www.linuxquestions.org/questions/fedora-35/nvidia-fc4-and-kernel-source-338975/)

IcoNyx 07-01-2005 02:56 AM

Nvidia FC4 and kernel source
 
I have been scowering the forums trying to find a fix for this one, I am running an Nvidia geforce 6800 w/ dual displays, problem is when I installed FC4 I cant install the drivers for the bugger... the drivers start fine but when building a kernel plugin it complains that there is no kernel source.

I came here and followed several threads for installing the source but the only thing I get is this after it trys to build a kernel module:

ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.


so what do I have to do?

as far as I can tell the kernel source is there it is in: /usr/src/linux/kernel/... I think...

anyway any help would be nice.

reddazz 07-01-2005 05:58 AM

You need to install the kernel-devel package using yum e.g.
Code:

#yum install kernel-devel
If you are using selinux, then make sure you do "setenforce 0" in a terminal as root before installing the nvidia driver.

IcoNyx 07-01-2005 08:47 AM

I have already done that... now I have done so many thing is it possible that I have hosed it all and need to start over?

my biggest problem is I am not sure if the kernel source packages are installed correctly... is there any way to check?

BTW I followed the instructions on the fedora docs page to install the source package:

http://fedoraproject.org/wiki/Fedora...b6ef1f5a39486b

so yes: I read the manual. but it still vomits on itself.

IcoNyx 07-05-2005 03:57 PM

ok, I fixed it. the problem had to do with my kernel and the kernel headers... as best as I can guess the Nvidia installer found the kernel headers and was going to try to use them but could not confirm they were the same version as the installed kernel. so I followed this install guide:
http://stanton-finley.net/fedora_cor...ion_notes.html

it lead me through a complete reinstall of fedora and then I went down to the section on nvidia. it worked like a champ... BTW the kernel-devel package did me no good because it installed the same kernel headers that the nvidia installer could not check against the running kernel. useing the developer package installed from the cd (or useing the install ALL option durring the initial install) fixes this,

Now I have not yet updated my kernel (and I may not for fear it will just recreate the problem) but I bet that if I do the problem will return. the reason: I was installing the kernel developement package and kernel source from the FTP site, these may have a problem with them that makes nvidia think they are not a match for the installed kernel. that would explain why it could see the source but couldnt do anything with it.

I think the reason fiew people have this issue is because most people install everything anyway, and therefor have no reason to try to pull the kernel-source/headers from the ftp site, and thus dont know there is a problem with the kernel-source package/kernel headers from the FTP site to begin with.

I hope this helps someone.

P.S. is there somewhere I can post this as a posible bug for the redhat team to look at?


All times are GMT -5. The time now is 03:16 AM.