分页: 1 / 1

The CC version check

发表于 : 2008-04-12 19:35
Apollo720
安装Nvidia官方下载的驱动:NVIDIA-Linux-x86-169.07-pkg1.run时出现下面的错误:
The CC version check failed
The compiler used to compile the kernel (gcc 4.1) does not exactly match
> the
> current compiler (gcc 4.2). The Linux 2.6 kernel module loader rejects
> kern
> el modules built with a version of gcc that does not exactly match that of
> t
> he compiler used to build the running kernel.
>
> If you know what you are doing and want to ignore the gcc version check,
> sel
> ect "No" to continue installation. Otherwise, select "Yes" to abort
> install
> ation, set the CC environment variable to the name of the compiler used to
> c
> ompile your kernel, and restart installation.

本系统有2个内核版本:
2.6.22-14-generic、2.6.24-15-generic
gcc版本也有2个:
gcc-4.1 、gcc-4.2
google了半天都没有找到解决办法,怎么解决?

发表于 : 2008-04-12 19:39
BigSnake.NET
CC=gcc-4.1 ./NVIDIA-Linux-x86-169.07-pkg1.run

发表于 : 2008-04-12 19:59
liangsuilong
我自己编译2.6.24.4内核也能够装装啊,找个对应版本的GCC啊

发表于 : 2008-04-12 20:27
Apollo720
谢谢BigSnake.NET,不知道加上这个参数还真的不知道怎么办,难怪网上查都查不到,原来太简单了,哈哈