LinuxSir.cn,穿越时空的Linuxsir!

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

无法安装NVIDIA显卡驱动

[复制链接]
发表于 2009-10-19 00:20:51 | 显示全部楼层 |阅读模式
大家好,我安装的是 Dibian 5.02 AMD64 ,到NVIDIA官方下载了显卡驱动 NVIDIA-Linux-x86_64-185.18.36-pkg2.run ,系统安装了相应的 linux-headers , 在关闭 GDM 的shell 里执行
./NVIDIA-Linux-x86_64-185.18.36-pkg2.run 后,进入安装向导,可是无法安装成功,
下面是  /var/log/nvidia-installer-log 的内容

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Oct 19 00:02:15 2009
installer version: 1.0.7

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  no cc version check     : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  compat32 install chroot : (not specified)
  compat32 install prefix : (not specified)
  compat32 install libdir : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 185.18.36.
-> 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.3).  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.

以前使用 OpenSUSE 的时候,都使用的这个方法很容易安装成功的,现在不知道 Debian是怎么回事,应该怎么安装!!谢谢!
发表于 2009-10-19 08:45:33 | 显示全部楼层
1. aptitude install gcc-4.1
2. CC=gcc-4.1 ./NVIDIA-Linux-x86_64-185.18.36-pkg2.run
回复 支持 反对

使用道具 举报

发表于 2009-10-19 08:50:02 | 显示全部楼层
license pre-accepted : false
回复 支持 反对

使用道具 举报

发表于 2009-10-19 12:50:01 | 显示全部楼层
提示gcc版本不符的时候,选择no不就能过去么/?
gcc libc6-dev都安装了吧
回复 支持 反对

使用道具 举报

发表于 2009-10-19 16:41:41 | 显示全部楼层
个人意见,一点鬼用没有,不用安它了,我也是安不上,以前安上过,没什么用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-19 19:12:35 | 显示全部楼层
Post by tiger_sx_cn;2038042
个人意见,一点鬼用没有,不用安它了,我也是安不上,以前安上过,没什么用。


不装显卡驱动,无法设置屏幕分辨率,现在的分辨率显示的字体相当的难看啊!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-19 19:21:05 | 显示全部楼层
Post by zhangxudong;2037890
1. aptitude install gcc-4.1
2. CC=gcc-4.1 ./NVIDIA-Linux-x86_64-185.18.36-pkg2.run


谢谢,用你的方法,安装成功,没想到还必须用特定版本的gcc,谢谢!!
现在屏幕好看多了!!
回复 支持 反对

使用道具 举报

发表于 2009-10-20 19:33:49 | 显示全部楼层
不一定是特定的版本,但是编译显驱的 gcc 版本必需和编译当前内核的 gcc 版本相同
回复 支持 反对

使用道具 举报

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

本版积分规则

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