LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1400|回复: 6

2.6.21-2-686无法安装nVadia驱动的问题(已解决)

[复制链接]
发表于 2007-9-15 22:20:46 | 显示全部楼层 |阅读模式
笔记本的显卡是Geforce Go 6200的,从nVidia网站上下载了NVIDIA-Linux-x86-100.14.11-pkg1.run和NVIDIA-Linux-x86-100.14.11-pkg1.run两个包,因不知道有什么区别,都试着装了一下,但在安装过程中均提示出错没有成功。在Linuxsir上搜了一下,相关的几个包都装了,我的是Debian4.0,内核是2.6.21-2-686.

错误信息如下:
Using: nvidia-installer ncurses user interface
WARNING: Skipping the runlevel check (the utility `runlevel` failed to run).
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel f
   rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
   this means that the installer will need to compile a kernel interface for
   your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> 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.  Abort now? (Answer: Yes)
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.

虽然没大有人关心这个贴子,还是把它结了吧,免得浪费有类似问题的搜索贴子的人。
解决过程:
本来是没想到过要装N卡驱动的,有一天心血来潮要装一下GoogleEarth试试,结果运行时系统就自动注销了,想到可能是显卡驱动问题,就开始装显卡驱动,怎奈装也装不上。
楼下有要说要升级内核,但由于水平有限还不敢轻易这么做。不过后来系统又出了点问题,重装后还是决定试一下升级内核。
从官网上下载了内核文件,一边开着北南南北和D00m3D以及网上搜来的一个内核参数配置的贴子开始安装,最后竟然一次成功了。进入2.6.22内核后顺利的装好了nVidia的驱动,GoogleEarth也可以运行了,而且感觉比Windows下速度要快,不知是不是早上网速好的原因。
发表于 2007-9-15 22:55:46 | 显示全部楼层
在 Debian 的 2.6.21 内核上用官方 nVidia 驱动有2个问题:
1、就是你现在遇到的问题。现在 lenny 的 gcc 默认已经是 4.2 版本了,而内核则仍然是 4.1 版本编译出来的( 2.6.22 也是,而且似乎会持续一段时间)。 Debian 官方的模块会指定由 gcc-4.1 来编译,而官方的包则会使用默认的。可以手动用 gcc-4.2 编译内核,但目前用 gcc-4.2 编译内核在某个驱动会出问题,这也是为什么官方默认仍然使用 4.1 编译内核的原因。建议使用 Debian 官方的模块。
2、即使使用 Debian 官方的模块,由于 Debian 的 2.6.21 内核中 kvm 模块强制 GPL ,和 nVidia 和 fglrx 的驱动协议冲突,所以无法完成链接。这个问题已经在 2.6.22 版解决。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-16 06:39:26 | 显示全部楼层
谢谢解答,不过还是不太明白,我现在还能不能装上这个驱动了,该怎么装呢?
回复 支持 反对

使用道具 举报

发表于 2007-9-16 08:38:19 | 显示全部楼层
apt-get dist-upgrade升级到2.6.22,然后按正常安装即可,我的ATI就是如此搞定的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-16 22:34:13 | 显示全部楼层
Post by wjytj
apt-get dist-upgrade升级到2.6.22,然后按正常安装即可,我的ATI就是如此搞定的。


是不是在sid上啊?都说sid的可能会不稳定,不知道有没有什么影响?如果没问题的话,我只想要装sid上的这个核心而以后还是用testing的源,这样不会有问题吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-22 15:57:08 | 显示全部楼层
问题已经解决。
回复 支持 反对

使用道具 举报

发表于 2007-9-30 17:50:08 | 显示全部楼层
我的内核是2.6.22-2-686,却也是同样的问题,看完上面的字还是不知道怎么解决
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表