please help me!
Completely new to linux, no idea on how to compile kernels
What I've got:
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
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.
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.
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...
how do i build a new kernel and kernel modules.
i know i have to use gcc, but where are the kernel files located?
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
|All times are GMT -5. The time now is 12:17 PM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.