Help to install NVidia Drivers

When I try to compile the NVkernel, I got this message:


    You appear to be compiling the NVdriver 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.

What can I do? Please help me.
(I’m new in Linux)

Thanks.

@+
Seb

I would fall for the temptation and set IGNORE_CC_MISMATCH and hope for the best.
My assumption is that the error message is showing that a different version of gcc is used rather than a complet different compiler. You could post gcc version and Linux distribution.

on gcc 2.96 it doesn’t do that.

JD

gcc -v
2.96 20000731 Linux Mandrake 8.0

cat /proc/version
gcc version 2.91.66

i’ve got a mandrake 8.0 and it didn’t do that each time i reinstall a new version.

then, follow the advises of Almost

JD

You’re compiling with headers in /usr/include/linux instead of /usr/src/linux/include/linux.

Be sure your kernel sources is installed (kernel-source rpm file).

To get rid of this pb, you could just have added “-I/usr/src/linux/include” in the NVidia’s Makefile, before the other “-I…”.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.