Page 1 of 1

Strange NVidia problem.. Complains about not finding kernel source

Posted: 2008/12/23 11:15:20
by tonyalbers
Hi guys,

I'm trying to run 5.2 on a Dell 490, which has a NV Quadro FX 4500 in it.

I've updated the kernel after install, and I've installed kernel-devel and kernel-headers. I've also installed gcc:

[root@pcisd12 ~]# yum list installed |grep kernel
kernel-PAE.i686 2.6.18-92.el5 installed
kernel-PAE.i686 2.6.18-92.1.22.el5.cen installed
kernel-PAE.i686 2.6.18-92.1.22.el5 installed
kernel-devel.i686 2.6.18-92.1.22.el5.cen installed
kernel-headers.i386 2.6.18-92.1.22.el5.cen installed
[root@pcisd12 ~]#

[root@pcisd12 ~]# yum list installed |grep gcc
gcc.i386 4.1.2-42.el5 installed
libgcc.i386 4.1.2-42.el5 installed
[root@pcisd12 ~]#

However, the NVidia installer complains that I don't have the kernel-source used to build my kernel...:

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 177.82.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
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 a

How do I resolve this? It seems right to me.:



Thanks,

/T

Re: Strange NVidia problem.. Complains about not finding kernel source

Posted: 2008/12/23 12:38:18
by tonyalbers
Tried with the
./NVIDIA-Linux-x86-177.82-pkg1.run --kernel-source-path=/usr/src/kernels/2.6.18-92.1.22.el5.centos.plus-i686/ --no-cc-version-check

But then it dies on a -1 invalid module format when trying to modprobe it.

Really weird.

[root@pcisd12 ~]# gcc -dumpversion
4.1.2
[root@pcisd12 ~]#

cat /proc/version
Linux version 2.6.18-92.1.22.el5.centos.plusPAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Wed Dec 17 11:32:56 EST 2008
[root@pcisd12 ~]#

Aren't these the same?


/T

Strange NVidia problem.. Complains about not finding kernel

Posted: 2008/12/23 12:57:16
by WhatsHisName
The installed devel package does not match the running kernel.

[code]# yum --enablerepo=centosplus list|grep kernel-PAE|grep centosplus

kernel-PAE.i686 2.6.18-92.1.22.el5.cen centosplus
kernel-PAE-devel.i686 2.6.18-92.1.22.el5.cen centosplus [/code]

Re: Strange NVidia problem.. Complains about not finding kernel source

Posted: 2008/12/23 13:24:59
by tonyalbers
This indeed seems like the case. I will have to try this out then.

Thank you very much.

Merry xmas,

/T

Re: Strange NVidia problem.. Complains about not finding kernel source

Posted: 2008/12/23 22:50:33
by WhatsHisName
You are welcome.

The rpmforge repo also contains the dkms-based nvidia-x11-drv driver based on the version 173.08 nvidia driver. Install it once and then let dkms deal with kernel updates.

Works for most recent, but probably not the absolute latest, nvidia-based chipsets.

[code]# yum --enablerepo=rpmforge info nvidia-x11-drv
...
Name : nvidia-x11-drv
Arch : x86_64
Version: 173.08
Release: 1.beta.el5.rf
Size : 37 M
Repo : rpmforge

Summary: Proprietary NVIDIA hardware accelerated OpenGL display driver

# yum --enablerepo=rpmforge info nvidia-x11-drv-32bit
...
Name : nvidia-x11-drv-32bit
Arch : x86_64
Version: 173.08
Release: 1.beta.el5.rf
Size : 17 M
Repo : rpmforge

Summary: Compatibility 32bit files for the 64bit Proprietary NVIDIA driver[/code]