ERROR : Unable to find the kernel source tree for the currently running kernel...

Posted by 겨울에
2011. 2. 7. 00:24 scrap/ Error

Linux nvidia 그래픽 드라이버 설치 중 error.

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' 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.




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?