LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Nvidia 190.42 driver installation fails with custom kernel (https://www.linuxquestions.org/questions/slackware-14/nvidia-190-42-driver-installation-fails-with-custom-kernel-765816/)

Moch5.0 10-31-2009 12:02 PM

Nvidia 190.42 driver installation fails with custom kernel
 
Hello all,

I'm at my wits end here. I have tried to install the newest Nvidia drivers (190.42) and it keeps giving me an error and aborting the installation.

I custom built my current kernel (2.6.31) from kernel.org. I have all the source files still installed. The system is stable and things tend to work correctly. (other programs compile)

here is the output form the Nvidia error file. I have tried using the --kernel-source-path= option and still no joy? How would I go about correcting this problem?
Thanks in advanced.
Moch5.0

Code:

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.


janhe 10-31-2009 01:29 PM

Quote:

Originally Posted by Moch5.0 (Post 3739249)
Code:

ERROR: Installation has failed.  Please see the file
      '/var/log/nvidia-installer.log' for details.


What did the log file say?

knudfl 10-31-2009 01:39 PM

The nvidia-installer looks for the links 'build'
and / or 'source' in /lib/modules/Žuname -rŽ

build and source must be links to /usr/src/Žuname -rŽ .

jedi_sith_fears 10-31-2009 02:47 PM


This is one strange thing I encountered in the past. If you run

make clean or make sysclean

after building a kernel, sometimes nvidia driver gives this error. Try to build the kernel against the stock kernel once, and if possible, re-build the kernel and try compiling nvidia driver once. See if that works.

pbharris 10-31-2009 03:01 PM

I don't have a solution - but it is doing the same thing to me. My sources are properly linked in /lib/modules and in /usr/src .

The 185.18.36 driver installs fine on all my custom kernels.

Moch5.0 10-31-2009 03:36 PM

jedi_sith_fears,

Thanks for the info. I'll try that and see if it works.

Moch5.0 10-31-2009 05:43 PM

Hello all,

Just wanted to say that a new kernel "recompile" did the trick. The driver installed and I have a new kernel version (2.6.31.5)

Thanks,
Moch5.0

Crashbox 10-31-2009 06:43 PM

Nvidia arguments
 
If I am correct, then the issue here was that the Nvidia installer couldn't find the kernel source code. So for the benefit of anyone else you might wander in, there are several command line arguments that can be run with the Nvidia installer.

Run the following to see a list:

Code:

NVIDIA-Linux-x86_64-XXX.XX.XX-pkg2.run --advanced-options
One of the arguments is to tell the installer where the source code is for the kernel that is running. For example, I keep my kernel source in /home/brian/kernel. So the last time I built the Nvidia driver for my custom kernel, the command I used was:

Code:

NVIDIA-Linux-x86_64-XXX.XX.XX-pkg2.run --kernel-source-path=/home/brian/kernel/linux-2.6.30.5/


All times are GMT -5. The time now is 12:04 PM.