Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-02-03, 09:15 AM   #1
stevetgn
Registered User
 
Join Date: Nov 2003
Posts: 2
Question Can't Install Drivers because of Kernel?

Hi people,

I can't install the Linux drivers for my Gforce FX5900 because of Kernel headers or something. What the hell does this mean and how do I compile the kernel?

Please help I'm a total linux newbie and have no idea what all this means!

Thanks in advance

Steve
stevetgn is offline   Reply With Quote
Old 11-02-03, 09:29 AM   #2
UB_KMA
Registered User
 
Join Date: Nov 2003
Posts: 10
Default

You don't mention your distibution, but if it is package based (rpm,deb) you need to install the source package for your kernel, usuallly called "your kernel"-dev.rpm or ""-devel.rpm. This contains the header that the driver is looking for.
UB_KMA is offline   Reply With Quote
Old 11-02-03, 09:34 AM   #3
stevetgn
Registered User
 
Join Date: Nov 2003
Posts: 2
Default

Thanks, My distro is the new Mandrake 9.2 if that helps you give me any more info.
stevetgn is offline   Reply With Quote
Old 11-02-03, 09:37 AM   #4
UB_KMA
Registered User
 
Join Date: Nov 2003
Posts: 10
Default

Yes, just do a search in the package update utility for "kernel" and install the package described as having the kernel headers.
UB_KMA is offline   Reply With Quote
Old 11-10-03, 12:35 PM   #5
MaROtO
Registered User
 
Join Date: Oct 2003
Location: Basque Country
Posts: 8
Default

Quote:
Originally posted by UB_KMA
Yes, just do a search in the package update utility for "kernel" and install the package described as having the kernel headers.
...and if it doesn't work? nvidia installer tells me after installing kernel source package, that he seems that my kernell was compiled with another header files....after all, in my distro instalation cds (amndrake 9.2) there is no kernel-source package, and i had downloaded it from the web. Could be that I downloaded the incorrect source package?
How can I view what is my kernel version? and i realize that mandrake rpms names, ends with a number after mdk signature...is it a revision number? (for example kernel-source.2.4.22mdk10 .rpm). Should i match this number with the one i had to download?
__________________
Bimmer Rules
MaROtO is offline   Reply With Quote
Old 11-10-03, 05:07 PM   #6
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

While the computer is running, type this command to find your kernel being used right then (it is possible to have more than one installed...)

cat /proc/version

The running kernel version is the numbers shortly after the Linux.. note here mine is 2.6.0-test9-bk7

Linux version 2.6.0-test9-bk7 (root@CirithUngol) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Sun Nov 2 09:17:45 PST 2003


The entire number is important, and your kernel-source package must match this precisely.

Yes, the entire rpm name should match your current running kernel, except for being kernel-source at the beginning.
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote
Old 11-11-03, 04:32 AM   #7
MaROtO
Registered User
 
Join Date: Oct 2003
Location: Basque Country
Posts: 8
Default

Quote:
Originally posted by LordMorgul
While the computer is running, type this command to find your kernel being used right then (it is possible to have more than one installed...)

cat /proc/version
I got it executing dmesg. The first line tells the kernel version.
Quote:
Originally posted by LordMorgul
The running kernel version is the numbers shortly after the Linux.. note here mine is 2.6.0-test9-bk7

Linux version 2.6.0-test9-bk7 (root@CirithUngol) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Sun Nov 2 09:17:45 PST 2003

The entire number is important, and your kernel-source package must match this precisely.
I've downloaded the kernel-souerce that matched my kernel version, and nvidia installer builded the driver woithout any problems.
Anyway, if I upgrade my kernel (by installing a recompiled new one, or by pathching it), should I recompile (run nvidia-installer) with the new kernel source in order to get a new nvidia module?
Quote:
Originally posted by LordMorgul
Yes, the entire rpm name should match your current running kernel, except for being kernel-source at the beginning.
Sorry, I don't undesrtand this phrase.
__________________
Bimmer Rules
MaROtO is offline   Reply With Quote
Old 11-11-03, 04:35 PM   #8
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

Quote:
Originally posted by MaROtO

Anyway, if I upgrade my kernel (by installing a recompiled new one, or by pathching it), should I recompile (run nvidia-installer) with the new kernel source in order to get a new nvidia module?

Sorry, I don't undesrtand this phrase.
Yes, you must recompile the nvidia driver to work with the new kernel, there is no other option.

What I meant by matching the filename to the version is this. My kernel is 2.6.0-test9-bk7. If I was installing the kernel source for that kernel, it would be called:
kernel-source-2.6.0-test9-bk7.i386.rpm

For Mandrake, it just has an mdk in there somewhere as part of the kernel name.
__________________
"..the triumph of evil is for good men to do nothing." (Edmond Burke)
nVIDIA video driver RPMs for Fedora :: see yum repo at livna.org.
LordMorgul is offline   Reply With Quote

Old 11-12-03, 09:22 AM   #9
blaev
Registered User
 
Join Date: Nov 2003
Location: CZ
Posts: 3
Default Re: Can't Install Drivers because of Kernel?

Quote:
Originally posted by stevetgn
Hi people,

I can't install the Linux drivers for my Gforce FX5900 because of Kernel headers or something. What the hell does this mean and how do I compile the kernel?

Please help I'm a total linux newbie and have no idea what all this means!

Thanks in advance

Steve
If you don't know about linux anything yet, you better download binaries of drivers (files like *.rpm)

If you are brave: You should install kernel-sources (files in /usr/src/linux*). Then cd to that directory and read README*.

then you can do:
make menuconfig && make dep

This should fool nvidia drivers enough to be ready for install, but do not expect that everything will go fine on the first try. Much more likely you will have to do complete kernel build. Read README, read help in menuconfig.

good luck
blaev is offline   Reply With Quote
Old 11-13-03, 11:02 AM   #10
MaROtO
Registered User
 
Join Date: Oct 2003
Location: Basque Country
Posts: 8
Default Re: Re: Can't Install Drivers because of Kernel?

Quote:
Originally posted by blaev
If you don't know about linux anything yet, you better download binaries of drivers (files like *.rpm)

If you are brave: You should install kernel-sources (files in /usr/src/linux*). Then cd to that directory and read README*.

then you can do:
make menuconfig && make dep

This should fool nvidia drivers enough to be ready for install, but do not expect that everything will go fine on the first try. Much more likely you will have to do complete kernel build. Read README, read help in menuconfig.

good luck
Well at now, i will keep using linux as a beginner-medium level (i think, installing programs in binary format if available, but if necesary compiling them..., the reason for that i choose mandrake.
Anyway, I plan building my own linux distro from scratch (well, with the aid of the latest LFS book...after all none borns knowing everything ). I hope that work will give me a good know-how about linux world...
__________________
Bimmer Rules
MaROtO is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.