LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   nvidia *.run cannot find kernel source (https://www.linuxquestions.org/questions/fedora-35/nvidia-%2A-run-cannot-find-kernel-source-364965/)

ceg4048 09-19-2005 02:29 PM

nvidia *.run cannot find kernel source
 
Hello,
Could someone please help me load the nvidia drivers? I have searched the forum and I find similar topics but theer are always slight differences and I'm never quite sure if they apply to my case. This is really unbelievable, but here goes,

I just loaded fc4 on hda1 of a machine configured with an AMD 64 3800+X2 dual core. The cpu is fitted to a DFI LanParty SLI board but I am only using a single nvidia 6600GT card. The load was successfull except for video and sound. Both cards are recognized but there is no sound at all and the video is marginal so I downloaded the latest nvidia driver file NVIDIA-Linux-x86_64-1.0-7676-pkg2.run. In order to avoid having to perform these gymnastics a second time I used up2date to install the latest kernel which at this time is 2.6.12-1.1447_FC4smp.

I then rebooted into the terminal andfrom the /root directory issued the command "sh NVIDIA-Linux-x86_64-1.0-7676-pkg2.run" which ran the installer and which reports that it could not locate the proper files at their website and when attempting to build ,fails with a message stating that it could not locate the kernel source.

I'm now very confused because one thread advised that what I really needed was the kernel-devel not the kernel-source so I installed kernel-devel but the same failure occurrs. I then went to one of the mirros and downloaded the .src.rpm but the rpm -ivh command returns a "permission denied".

If I navigate to the /usr/src/kernels directory I can see that there is a 2.6.12-1.1447_FC4-x86_64 directory containing other files and subdirectories but I have no idea what to look for in order to confirm the existence.

I've also read other theads that discuss "source trees" and "headers" and so forth but I'm entirely clueless. I shouldn't need to be a rocket scientist to install a video driver, should I?

Could someone help me troubleshoot? Any advice on how to proceed further would be welcomed.

Cheers,

jcliburn 09-19-2005 02:40 PM

You definitely don't need the kernel source, but you really do need the kernel-devel package. That's what's installed on my AMD64/FC4 box, and I build the nvidia drivers without a problem after every kernel upgrade.

Verify that kernel-devel is installed by "rpm -qa | grep kernel-devel"

If it's not, download it and install it. If you use yum, then "yum install kernel-devel" will do the trick.

Otherwise, grab
http://download.fedora.redhat.com/pu...FC4.x86_64.rpm and install it using the command "rpm -Uvh kernel-devel-2.6.12-1.1447_FC4.x86_64.rpm"

I'm not at home right now, but I can check my config when I get home tonight and see if something I find might help you.

Jay

ceg4048 09-19-2005 03:04 PM

Hi Jay,
Thanks for the speedy response. I did as you suggested and the response was as follows:

[root@localhost ~]# rpm -qa | grep kernel-devel
kernel-devel-2.6.12-1.1447_FC4
[root@localhost ~]#

I assume therefore that this means the package is installed right? Just to reconfirm I logged out via telinit 3 and tried to install again but with the same response from the nvidia installer.

Do I have missing simlinks or are the files not in the right place?

Cheers,

Clive

jcliburn 09-19-2005 07:08 PM

Take a look through /var/log/nvidia-installer.log and see if you can find the log entry that corresponds with the build failure. Post the last 20 or so lines of the log here (assuming the last 20 lines contain the error message).

jcliburn 09-19-2005 08:18 PM

Doh!!! I think I know what your problem is... Your first post says you're using an smp kernel. If so, you need to install the kernel-smp-devel package.

yum install kernel-smp-devel

See if that fixes you up.

Jay

ceg4048 09-20-2005 02:39 AM

Hi Jay,
Yes, you are absolutely correct! I was missing the kernel-devel-smp version. The installer ran perfectly and the drivers installed. I'll have to always remember for this sytem to look for 64 bit as well as smp versions of software.

A huge thank you!

Cheers,

Clive


All times are GMT -5. The time now is 08:31 AM.