LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   NVIDIA installer can't find kernel source (http://www.linuxquestions.org/questions/linux-software-2/nvidia-installer-can%27t-find-kernel-source-793979/)

lakersforce 03-08-2010 10:17 AM

NVIDIA installer can't find kernel source
 
First my uname -a
Code:

Linux quad 2.6.33 #1 SMP Sun Mar 7 18:22:02 CET 2010 x86_64 GNU/Linux
I am using Trisquel GNU/Linux 3.0. I am asking my questions here, since this involves non-free drivers. I succesfully installed the nvidia driver on the default kernel. But the default kernel has removed all support for DVB USB sticks, so I had to compile my own kernel.

I got the newest version from kernel.org. Saved the archieve to /usr/src/. unzipped the file in the directory (so my kernel source is now in /usr/src/linux-2.6.33/.) Made a symlink with ln -s linux-2.6.33 linux. I compiled the kernel succesfully. Did a "make install" and "make modules_install" and ran "update-grub". Restarted system. Cd'ed to my source directory and ran "make headers_install" succesfully. Looking at my timestamps, it looks like the kernel headers has been installed to /usr/src/linux-2.6.33/usr/include/linux/.

I downloaded the latest x86_64 drivers from nvidias website. Went to console 1 and closed up X.

If I start the installer without any parameters (sh NVIDIA*.run) I get the following error:

Code:

ERROR: Unable to determine the version of the kernel sources located in
      '/lib/modules/2.6.33/source'.  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.

/lib/modules/2.6.33/source is a symlink which point to /usr/src/linux-2.6.33

I get the same error if using --kernel-source-path=/usr/src/linux/, /usr/src/linux-2.6.33/ and similar options which link to this directory through symlinks.

If I use --kernel-source-path=/usr/src/linux-2.6.33/usr/include, I get the following error:

Code:

ERROR: The kernel header file
      '/usr/src/linux-2.6.33/usr/include/include/linux/kernel.h' does not
      exist.  The most likely reason for this is that the kernel source path
      '/usr/src/linux-2.6.33/usr/include' is incorrect.
etc.

OK, that makes sense, I think to myself, since the headers file (and the *.h file referred to) are not in /usr/src/linux-2.6.33/usr/include/include/linux/ but /usr/src/linux-2.6.33/usr/include/linux/

I then ran the installer with --kernel-source-path=/usr/src/linux-2.6.33/usr/ but got the following error:

Code:

ERROR: Unable to determine the version of the kernel sources located in
      '/usr/src/linux-2.6.33/usr/'.  Please make sure you have installed the
      kernel source files for your kernel and that they are properly
      configured;

What am I missing? Why can't the installer find the sources? I triple checked all my symlinks in /usr/src/ and /lib/modules/ and they all point at the appropiate places.

GrapefruiTgirl 03-08-2010 10:21 AM

https://www.linuxquestions.org/quest...ml#post3890342

This thread linked here should explain what's going wrong. Read that to understand the issue, then grab yourself one of those trusty patches for the driver :)

Sasha

lakersforce 03-08-2010 10:55 AM

Thanks!
 
Hey...it worked...can't find the thanks button...but THANKS!!!

EDIT: found it :)

2nd EDIT: the post that nailed it, can be found here.


All times are GMT -5. The time now is 01:29 AM.