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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-20-03, 04:28 PM   #1
khana
Registered User
 
Join Date: May 2003
Posts: 4
Default please help me!

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, 119 views)
khana is offline   Reply With Quote
Old 05-20-03, 06:28 PM   #2
connyosis
Eggplant
 
connyosis's Avatar
 
Join Date: May 2003
Location: Sweden
Posts: 86
Send a message via ICQ to connyosis
Default

You probably have to install the c compiler if you havent already done that. (Should be named gcc-3.2-something.rpm)
Then run this:

export IGNORE_CC_MISMATCH=1 && ./NVIDIA-Linux-x86-1.0-4363.run

Now it should work fine.
__________________
"Never bump a baby carriage out of a crosswalk unless the kid's really asking for it."
connyosis is offline   Reply With Quote
Old 05-20-03, 08:12 PM   #3
leibold
Registered User
 
Join Date: May 2003
Posts: 66
Default

Ignoring the compiler mismatch is a bad idea, especially since he is running a relatively old version of RH. Things are likely to break if you are using a kernel build with compiler A and kernel modules build with compiler B.

Before trying to run the nvidia installer build a new kernel and kernel modules with whatever compiler you have installed. Install and boot this new kernel (make sure to keep the current kernel available in case the new one doesn't work). Then run the nvidia installer again which should then work.
leibold is offline   Reply With Quote
Old 05-21-03, 08:19 AM   #4
connyosis
Eggplant
 
connyosis's Avatar
 
Join Date: May 2003
Location: Sweden
Posts: 86
Send a message via ICQ to connyosis
Default

Hmm...didnt think about that he had a very old kernel version.
I myself have had this problem a couple of times after upgrading my gcc, and ignoring cc mismatch has never caused me any problems though...
__________________
"Never bump a baby carriage out of a crosswalk unless the kid's really asking for it."
connyosis is offline   Reply With Quote
Old 05-22-03, 12:06 PM   #5
khana
Registered User
 
Join Date: May 2003
Posts: 4
Default

how do i build a new kernel and kernel modules.

i know i have to use gcc, but where are the kernel files located?
khana is offline   Reply With Quote
Old 05-22-03, 04:38 PM   #6
connyosis
Eggplant
 
connyosis's Avatar
 
Join Date: May 2003
Location: Sweden
Posts: 86
Send a message via ICQ to connyosis
Default

Well on the redhat cd I would think.
Building a kernel is way offtopic here. I suggest you ask in #linuxhelp on irc.freenode.net, or check out some faqs online. Remember google is your friiend
__________________
"Never bump a baby carriage out of a crosswalk unless the kid's really asking for it."
connyosis 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


All times are GMT -5. The time now is 04:12 AM.


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