View Single Post
Old 06-29-10, 10:41 AM   #1
giacof
Registered User
 
Join Date: Jun 2010
Posts: 4
Thumbs down 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

Last edited by giacof; 06-29-10 at 10:48 AM. Reason: further useful info
giacof is offline   Reply With Quote