LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-31-2009, 12:02 PM   #1
Moch5.0
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware64 13.0 (current)
Posts: 12

Rep: Reputation: 0
Question 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.
 
Old 10-31-2009, 01:29 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
Quote:
Originally Posted by Moch5.0 View Post
Code:
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.
What did the log file say?
 
Old 10-31-2009, 01:39 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,180

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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Ž .
 
Old 10-31-2009, 02:47 PM   #4
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Slackware(64)-current, Fedora 14, FreeBSD
Posts: 136
Blog Entries: 1

Rep: Reputation: 29

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.
 
Old 10-31-2009, 03:01 PM   #5
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
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.
 
Old 10-31-2009, 03:36 PM   #6
Moch5.0
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware64 13.0 (current)
Posts: 12

Original Poster
Rep: Reputation: 0
jedi_sith_fears,

Thanks for the info. I'll try that and see if it works.
 
Old 10-31-2009, 05:43 PM   #7
Moch5.0
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware64 13.0 (current)
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 10-31-2009, 06:43 PM   #8
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 21
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: NVIDIA 190.16 Driver Brings OpenGL 3.2 To Linux LXer Syndicated Linux News 0 07-22-2009 09:10 PM
NVidia driver trouble with custom kernel PsychosisNode Linux - Hardware 2 05-31-2005 01:18 PM
Nvidia driver fails installation (again) SilenceX Mandriva 24 04-14-2004 09:28 AM
nvidia driver installation in 2.6.0 kernel fails? oskernel Linux - Hardware 8 10-30-2003 08:09 PM
NVIDIA driver for custom kernel UltimaGuy Linux - Newbie 7 10-16-2003 08:02 AM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration