The CC version check

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
Apollo720
帖子: 10
注册时间: 2006-10-23 16:58

The CC version check

#1

帖子 Apollo720 » 2008-04-12 19:35

安装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了半天都没有找到解决办法,怎么解决?
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2008-04-12 19:39

CC=gcc-4.1 ./NVIDIA-Linux-x86-169.07-pkg1.run
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
liangsuilong
帖子: 777
注册时间: 2007-08-11 20:54
来自: 广州
联系:

#3

帖子 liangsuilong » 2008-04-12 19:59

我自己编译2.6.24.4内核也能够装装啊,找个对应版本的GCC啊
人的生命是有限的,但是享受Linux的乐趣是无限的!
http://www.liangsuilong.info
Apollo720
帖子: 10
注册时间: 2006-10-23 16:58

#4

帖子 Apollo720 » 2008-04-12 20:27

谢谢BigSnake.NET,不知道加上这个参数还真的不知道怎么办,难怪网上查都查不到,原来太简单了,哈哈
回复