LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ERROR: Unable to determine the NVIDIA kernel module filename. (https://www.linuxquestions.org/questions/slackware-14/error-unable-to-determine-the-nvidia-kernel-module-filename-145345/)

Friedrich 02-12-2004 02:36 PM

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

jtshaw 02-12-2004 03:03 PM

-> 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.

Atmchicago 02-12-2004 04:26 PM

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).

Friedrich 02-13-2004 02:29 AM

@ 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.

trey85stang 02-13-2004 07:45 AM

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.

Friedrich 02-13-2004 09:42 AM

did not change anything

trey85stang 02-13-2004 11:28 AM

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.

Atmchicago 02-13-2004 03:50 PM

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.

Friedrich 02-14-2004 07:29 AM

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.

Friedrich 02-14-2004 07:37 AM

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?

Friedrich 02-14-2004 12:32 PM

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!

Atmchicago 02-14-2004 01:11 PM

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

sykes 03-15-2004 11:53 AM

Friedrich
I have the same problem in Mandrake 10.Can you tell me how did you worked it out?
10x

Friedrich 03-15-2004 01:46 PM

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

sykes 03-15-2004 06:35 PM

10x Friedrich

It worked.. :)


All times are GMT -5. The time now is 07:42 PM.