LinuxQuestions.org
Register a domain and help support LQ
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 02-12-2004, 02:36 PM   #1
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
Unhappy ERROR: Unable to determine the NVIDIA kernel module filename.


Hello everyone,
for days I'm trying to install the NVIDIA driver with the help of NVIDIA-Linux-x86-1.0-5336-pkg1.run

I have
slackware 9
kernel 2.4.22

What I do is shutting down the X Server, su, and sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
That is my /var/log/nvidia-installer.log that is created during execution of this script

Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Feb 10 22:50:29 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : /home/freddy/kernel-install/linux-2.4.22
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : f*p://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (*tp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Using the kernel source path '/home/freddy/kernel-install/linux-2.4.22' as
specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/home/freddy/kernel-install/linux-2.4.22'
-> Performing cc_version_check with CC="cc".
ERROR: Unable to determine the NVIDIA kernel module filename.
As you can see the installer fails to install.

Actually I do not really understand the Error message but anyway i thought I would have something to do with my kernel source.

I extracted it from CD on my HDD (as you can see in this log too) and ran make mrproper, but actually this did not change anything.

I also attached --kernel-name=2.4.22 (uname -r gives me 2.4.22) now but that did not change the error

I hope someone of you knows what to do, because I have no idea.

Thank you very much,
Friedrich

Last edited by Friedrich; 02-12-2004 at 02:37 PM.
 
Old 02-12-2004, 03:03 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 65
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (*tp://download.nvidia.com)? (Answer: No)

You should have answered Yes to this question, not no. That is your problem.
 
Old 02-12-2004, 04:26 PM   #3
Atmchicago
Member
 
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 216

Rep: Reputation: 30
If you're using the kernel that came with slackware, to compile your module you need to install the kernel header files.

If you compiled your own kernel, they should be there. With the 2.6.x kernels, there was a problem with earlier drivers (now fixed) where they didn't work without a hack for the same reason - but it appears you are using 2.4.x.

Sometimes downloading a module doesn't work (like if you compile the kernel yourself).
 
Old 02-13-2004, 02:29 AM   #4
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
@ jtshaw

of course I answered yes some times but it could not download the needed interface, so the last time I tried to install I answered no to move on faster

@Atmchicago
If you're using the kernel that came with slackware, to compile your module you need to install the kernel header files.

So how do I do that? I mean you know that I tried to install them as the README told me to do...
Quote:
I extracted it from CD on my HDD (as you can see in this log too) and ran make mrproper, but actually this did not change anything.
I do use the standard 2.4.22 that comes with slackware 9, I did not compile myself.
 
Old 02-13-2004, 07:45 AM   #5
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
if the src wasnt there.. you will need to create a symlink, cd to /usr/src/linux if it says it doesnt exist you need to create a symlink

cd /usr/src
ln -s linux-X.X(yourkernelversion) linux

run that.. and you should be set.
 
Old 02-13-2004, 09:42 AM   #6
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
did not change anything
 
Old 02-13-2004, 11:28 AM   #7
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
Code:
Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (*tp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Using the kernel source path '/home/freddy/kernel-install/linux-2.4.22' as
specified by the '--kernel-source-path' commandline option.
-> Kernel source path: '/home/freddy/kernel-install/linux-2.4.22'
-> Performing cc_version_check with CC="cc".
ERROR: Unable to determine the NVIDIA kernel module filename.
Are you running any command line switches... what exactly are you typing to excute this?

EDIT: nvm.. i see in your original post now... trying getting the 4493 nvidia drivers.. and see if you get the same thing.

Last edited by trey85stang; 02-13-2004 at 11:30 AM.
 
Old 02-13-2004, 03:50 PM   #8
Atmchicago
Member
 
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 216

Rep: Reputation: 30
What I meant about kernel sources *should* be simple: on your slack CD (1 probabaly, could be 2) there should be a package called kernel source. look around the folders, and then do:

installpkg [kernel-sources-package].tgz

That should do the trick for installing your kernel sources that came with the default kernel.
 
Old 02-14-2004, 07:29 AM   #9
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
trey85stang
I found only 4496 on http://www.nvidia.com/object/linux_display_archive.html but I'll try, probably it is similar to 4493

Atmchicago
Do you have the Slackware 9 CDs? Actually on my CDs (I have 4) the source is located on the third as a bz2 file. Please correct me if I have understood something wrong and it would be nice if you could tell me the concrete CD and the path to the file.
 
Old 02-14-2004, 07:37 AM   #10
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Feb 14 14:29:36 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: The kernel header file '/usr/src/linux/include/linux/modversions.h' does
not exist. The most likely reason for this is that the kernel header
files in '/usr/src/linux/include' have not been configured.
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.
With older drivers I get this problem with modversions.h. Maybe I really left out one step to install my kernel source?
 
Old 02-14-2004, 12:32 PM   #11
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Please do not stone me, but I worked it out and it was just too easy: instead of extracting and installing the source from slackware9-CD3 I had to install a package from the CD1 and everything went just fine with the latest installer!
 
Old 02-14-2004, 01:11 PM   #12
Atmchicago
Member
 
Registered: Apr 2003
Location: Baltimore
Distribution: Fedora
Posts: 216

Rep: Reputation: 30
That's what I was saying, Friedrich Glad you worked it out.

Last edited by Atmchicago; 02-14-2004 at 01:23 PM.
 
Old 03-15-2004, 11:53 AM   #13
sykes
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware 12.2
Posts: 3

Rep: Reputation: 0
Friedrich
I have the same problem in Mandrake 10.Can you tell me how did you worked it out?
10x
 
Old 03-15-2004, 01:46 PM   #14
Friedrich
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
sykes,
hmmm, my last Mdk was 8.2
Anyway: you will have an rpm package under Mdk that contains the source of your distro and needs to be installed. If the nvidia-installer does not find the source in your filesystem you can help it by providing a flag:
--kernel-source-path=/some/where

(that was everything that I had to do, at least)

hope that helps
 
Old 03-15-2004, 06:35 PM   #15
sykes
LQ Newbie
 
Registered: Mar 2004
Location: Romania
Distribution: Slackware 12.2
Posts: 3

Rep: Reputation: 0
10x Friedrich

It worked..
 
  


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
error building nvidia kernel module beeblequix Debian 1 10-07-2005 05:21 PM
Unable to build the NVIDIA kernel module subaruwrx Linux - General 2 03-12-2005 08:15 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Unable to load kernel module nvidia-o mattv Linux - Newbie 3 02-26-2004 11:05 AM
Unable to load kernel module nvidia.o innovest_11 Linux - Newbie 2 02-01-2004 11:08 AM


All times are GMT -5. The time now is 02:23 PM.

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