nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Cannot install NVIDIA driver version 256.35 - kernel sources not found (http://www.nvnews.net/vbulletin/showthread.php?t=152514)

giacof 06-29-10 10:41 AM

Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
Hi,
I'm trying to install the latest Nvidia drivers (256.35) on my Samsung R580 laptop, that is equipped with a GT330M video card.
The Linux distro is BackTrack 4 R1 Development release, which is based on Kubuntu 8.10 with a 2.6.34 kernel.
I installed kernel headers and sources:
Code:

$ ll /usr/src
totale 128604
drwxrwsr-x  8 root src      4096 2010-06-28 11:32 ./
drwxr-xr-x 19 root root    4096 2010-01-10 20:15 ../
drwxr-sr-x  7 root root    4096 2009-12-14 09:54 drivers/
lrwxrwxrwx  1 root src        19 2010-06-25 20:25 linux -> linux-source-2.6.34/
drwxr-xr-x 24 root root    4096 2010-06-28 10:30 linux-headers-2.6.34/
drwxr-xr-x 24 root root    4096 2010-06-28 11:37 linux-source-2.6.30.9/
-rw-r--r--  1 root root 60788328 2009-12-02 04:05 linux-source-2.6.30.9.tar.bz2
drwxr-xr-x 25 root root    4096 2010-06-09 18:00 linux-source-2.6.34/
-rw-r--r--  1 root root 70729674 2010-06-09 18:01 linux-source-2.6.34.tar.bz2
drwxr-xr-x  3 root root    4096 2010-06-28 11:30 nv/
drwxr-xr-x  7 root root    4096 2010-06-24 11:12 rpm/

When I launch:
Code:

# sh ./NVIDIA-Linux-x86-256.35.run
the installation fails as reported in the /var/log/nvidia-installer.log file:
Code:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jun 28 11:54:33 2010
installer version: 256.35

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall              : false
  driver info            : false
  precompiled interfaces  : true
  no ncurses color        : false                                                                                                                                     
  query latest version    : false                                                                                                                                     
  OpenGL header files    : true                                                                                                                                       
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup              : false
  kernel module only      : false
  sanity                  : false
  add this kernel        : false
  no runlevel check      : false
  no network              : false
  no ABI note            : false
  no RPMs                : false
  no kernel module        : false
  force SELinux          : default
  no X server check      : false
  no cc version check    : false
  force tls              : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path  : (not specified)
  OpenGL install prefix  : (not specified)
  OpenGL install libdir  : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name            : (not specified)
  kernel include path    : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path    : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list          : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 256.35.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.34/build'
-> Kernel output path: '/lib/modules/2.6.34/build'
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.

I can't figure out what is wrong with the kernel headers/source... any help would be highly appreciated!

EDIT: /lib/modules/2.6.34/build symlinks to /usr/src/linux-headers-2.6.34, if I change it to /usr/src/linux-source-2.6.34 then I get a different error message about a missing .h file

ledoc 06-29-10 06:38 PM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
What is the actual kernel you're running? (uname -r)

giacof 06-30-10 03:00 AM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
It's 2.6.34, of course. By the way, I also tried it by explicitly setting the kernel path with the --kernel-source-path option to either /usr/src/linux-headers-2.6.34 or /usr/src/linux-source-2.6.34, but with no luck.

mlord 06-30-10 08:04 AM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
giacof: Something is amiss somewhere. I've been using this driver on 2.6.34 (from kernel.org) for a few weeks now. The kernel module built (and still builds) without fuss, and performance is excellent on my GT240.

I have this script at boot-time to rebuild the module for me, in case I reconfigure/recompile the kernel:

Code:

KVER="`uname -r`"
INSTALLER=/root/NVIDIA-Linux-x86_64-256.35.run
$INSTALLER --no-network --kernel-name=$KVER --no-x-check --kernel-module-only --ui=none --no-questions --accept-license


What does your system show when you type this command:

/bin/ls -aF /lib/modules/2.6.34/build/include/*

???

giacof 06-30-10 10:51 AM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
1 Attachment(s)
@mlord: enclosed is the output of the given command.
Many thanks!

mlord 06-30-10 04:03 PM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
Quote:

Originally Posted by giacof (Post 2280508)
@mlord: enclosed is the output of the given command.

Mmm.. not significantly different from what I have here, other than the modules selected.

Take it up with the distro maker -- that's a pre-beta development release, so it undoubtedly has bugs. I tried to download it, but they no longer have a link for it at the developers' site.

Cheers

mlord 06-30-10 04:08 PM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
Oh.. one difference: your copy is missing modversions.h. That could be the config difference.

And it also has mtrr.h instead of an mtrr directory, but maybe that's just because my kernel is 64-bit rather than 32-bit.

giacof 07-02-10 09:43 AM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
@mlord: Thank you for your support!
At the end I could install the latest drivers only after a kernel recompilation. It still remains a mystery why they could not be installed with the kernel headers only and why those header file and directory are missing... perhaps I should just wait for the next stable release.
Again, many thanks!

zander 07-02-10 10:04 AM

Re: Cannot install NVIDIA driver version 256.35 - kernel sources not found
 
Please note that in order to build kernel modules against a Linux kernel source tree, it needs to be configured and have had at least the module preparation step run on it. Else a variety of generated header files and helper utilities not covered by dependencies won't be present. Likewise, any kernel headers packages need to include all relevant generated files.


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

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.