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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-15-03, 03:04 PM   #1
volteic
Registered User
 
Join Date: May 2003
Posts: 3
Unhappy Redhat 9 kernel-2.4.20.13.9 problem

Hello,
This is my first time using Linux and choose to use redhat 9.
I did the kernel update to 2.4.2.0-13.9 from redhat.
I'm trying to install NVIDIA-Linux-x86-1.0-4363 followed the directions in the readme file, exited X and typed the command and I get this:

ERROR: Unable to find the kernel header files for the currently running kernel.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline 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.

I looked for the kerner-header but unable to find, also looked in redhat ftp for a kerner-header.rpm but they dont have one.

Any ideas? Any help would be great.
Attached Files
File Type: log nvidia-installer.log (2.0 KB, 149 views)
volteic is offline   Reply With Quote
Old 05-15-03, 03:50 PM   #2
volteic
Registered User
 
Join Date: May 2003
Posts: 3
Default

Could some one tell me where to get the kernel-header rpm? or a way to build it?
Please help.
volteic is offline   Reply With Quote
Old 05-15-03, 04:04 PM   #3
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

You don't use kernel-headers on RH, you use kernel-source instead.

After finding and installing the kernel-source-2.4.20-13.9 package (note that the version has to EXACTLY match your running kernel's version), you will also have to configure the kernel sources -- this is something only RH users have to do. Fun, isn't it?

Anyway, look around in /usr/src/linux-<version>/configs for a config file that matches your running kernel (or, there might well be one in /boot; look there too). Copy it to /usr/src/linux-<version>/.config, then cd into /usr/src/linux-<version> and run make clean oldconfig dep -- the clean may not be necessary, but oh well. After doing that, the sources should be configured -- try the installer again.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 05-15-03, 04:40 PM   #4
volteic
Registered User
 
Join Date: May 2003
Posts: 3
Default Woot!!

Thanx for the post ... I intalled the source and the driver install worked like it should. Wow now I can play tuxracer ^^.
volteic is offline   Reply With Quote
Old 05-15-03, 07:38 PM   #5
DJSpaceMouse
Registered User
 
Join Date: May 2003
Location: /usa/pa/ambridge/home/upstairs
Posts: 7
Default

May I ask where you found that kernel-source rpm? I can't seem to find it.
DJSpaceMouse is offline   Reply With Quote
Old 05-15-03, 09:53 PM   #6
sloncho
Registered User
 
Join Date: May 2003
Posts: 1
Red face more info src.rpm

Hi, its very strange. I have made:
rpm -i kernel-2.4.20-13.9.src.rpm

and strange, it created /usr/src/redhat/SOURCE and SPEC directories
in SOURCE there are some .patch files ?!?! and tar.bz2

but I do not have /usr/src/linux ... and so on ..

where are the headers?
please help

actualy the "problem" is lets say - deeper

i have had running 20-9 kerlnel. And I do not remember how, but I have installed the sources (maybe) and I have succeded to install nVidia drivers.
But now ... after update ... I have to start the machine with the old kernel to use them. I can not remember what happened, but I thing that in the past I decided that I do not need headers any more and I have deleted everything in /usr/src ... (how smart, uh?)

Last edited by sloncho; 05-15-03 at 10:02 PM.
sloncho is offline   Reply With Quote
Old 05-16-03, 04:43 AM   #7
rflor
Registered User
 
Join Date: May 2003
Posts: 1
Lightbulb re: src.rpm

kernel-2.4.20-13.9.src.rpm is the source rpm,
the rpm used to rebuild the kernel.

You must download

kernel-source-2.4.20-13.9.i386.rpm

the rpm with source kernel.

And by the way don't remove manually
files installed with rpm.
You should use

rpm -e kernel-source

to do a clean package removal.

I think you have to use

rpm -U kernel-source-2.4.20-13.9.i386.rpm

to install the new package.
rflor is offline   Reply With Quote
Old 05-16-03, 08:20 AM   #8
duvvid
Registered User
 
Join Date: Nov 2002
Posts: 6
Default

Quote:
Originally posted by bwkaz

After finding and installing the kernel-source-2.4.20-13.9 package (note that the version has to EXACTLY match your running kernel's version), you will also have to configure the kernel sources -- this is something only RH users have to do. Fun, isn't it?
This is not true.

This was only required for one (now outdated) kernel release, due to a packaging bug. The details are in the FAQ section of the NVidia README file.
duvvid is offline   Reply With Quote

Old 05-16-03, 09:31 AM   #9
DJSpaceMouse
Registered User
 
Join Date: May 2003
Location: /usa/pa/ambridge/home/upstairs
Posts: 7
Default

I finally found the kernel source. It's right here for anyone else that may be having trouble locating it.
DJSpaceMouse is offline   Reply With Quote
Old 05-16-03, 11:20 AM   #10
dpw2atox
Registered User
 
Join Date: May 2003
Posts: 170
Default

hi I have the same problem as the user above but mine is still not compiling. I installed the Athlon version of the kernel and the kernel-source as well and copied the proper arch for the config file and made it also. Here is the error output.

-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
4363). As part of installing this driver (version: 1.0-4363), the existing
driver will be uninstalled. Are you sure you want to continue? ('no' will a
bort installation) (Answer: Yes)
-> 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.
-> Kernel include path: '/lib/modules/2.4.20-13.9/build/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/lib/modules/2.4.20-13
.9/build/include'...

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.
@
dpw2atox is offline   Reply With Quote
Old 05-16-03, 11:56 AM   #11
alien999999999
Registered User
 
alien999999999's Avatar
 
Join Date: Apr 2003
Location: Belgium
Posts: 218
Send a message via ICQ to alien999999999
Default

read what the log says!!!

either set the CC variable or set the IGNORE_CC_MISMATCH variable, else the installation won't do anything...
__________________
Alien is my name and headbiting is my game.
alien999999999 is offline   Reply With Quote
Old 05-16-03, 12:04 PM   #12
dpw2atox
Registered User
 
Join Date: May 2003
Posts: 170
Default

i don't know how to do that. I upgraded my compiler to 3.2.3 from 3.2.2 and I think thats what is causing my problem. Anyone know how I can make installing the driver work or do I have to manually compile a kernel to make it work?

Last edited by dpw2atox; 05-16-03 at 12:17 PM.
dpw2atox 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
Random crashes, NVRM Xid messages Iesos NVIDIA Linux 90 10-04-12 03: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 12:58 AM.


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