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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-19-03, 10:14 PM   #1
khana
Registered User
 
Join Date: May 2003
Posts: 4
Default Redhat 7.0 kernel not compiling

Completely new to linux, no idea on how to compile kernels

What I've got:

amd1800+
Red Hat linux 7.0 - kernel 2.2.16-22
GeForce 4 MX 440 SE
256 MB Ram

I'm trying to install the latest driver (4636) but the installer tells me that it will have to compile a new kernel interface.

then it says that:

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. ..........
.....In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

I don't know the name of the compiler used to compile the kernel and I have no clue how to set the CC environment variable to the specific kernel. What file do I have to change and how do I find out which compiler to change it to?

thanks., you can check the log file if you wish.

this is the first time i installed linux, so if you guys can use newbie terms, that would be great
Attached Files
File Type: log nvidia-installer.log (2.9 KB, 133 views)
khana is offline   Reply With Quote
Old 05-20-03, 05:55 PM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

What does cat /proc/version say? What about cc -dumpversion?
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 05-22-03, 01:11 PM   #3
khana
Registered User
 
Join Date: May 2003
Posts: 4
Default

- cat /proc/version says i'm using kernel version 2.2.16-22
and gcc version 2.91.66


- cc -dumpversion returns the value 2.96
khana is offline   Reply With Quote
Old 05-22-03, 06:40 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

OK, I don't know if that's a problem or not. I think that it'll work, because the versions are pretty close (2.96 vs. 2.91.66), but perhaps not.

Which gcc 2.96 is this? And now that I ask, I'll have to figure out how to figure that out... probably rpm -qa | grep gcc will tell you. Certain revisions of gcc 2.96 were extremely buggy (they would not compile the kernel correctly, nor would they work with mplayer, or a lot of other programs); I believe the first 2.96 that worked acceptably well was 2.96-76 or so (it was -7X for some digit X, which I believe was 6).

If you have something older, then try to find an upgrade. I believe that gcc did compile itself correctly, though, so you might be able to do that. Maybe. If you do, you'll have to recompile the kernel, too, though, so it's probably not worth it.

If your gcc is OK, you can attempt to do an export IGNORE_CC_MISMATCH=1, then run the installer from the same shell. No guarantees on whether it'll work or not, but it might. It's easier than compiling a kernel for the first time.
__________________
Registered Linux User #219692
bwkaz 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 04:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 11:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 05:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 09:22 PM

All times are GMT -5. The time now is 01:03 AM.


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