LinuxSir.cn,穿越时空的Linuxsir!

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

11.2如何安装NVIDIA驱动?

[复制链接]
发表于 2009-6-25 23:48:55 | 显示全部楼层 |阅读模式
官方下了个 NVIDIA-Linux-x86_64-180.22-pkg2.run

运行sh NVIDIA-Linux-x86_64-180.22-pkg2.run -q出现错误!我还装少了什么?

错误代码:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Jun 28 09:34:12 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 180.22.
-> 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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: The kernel header file
       '/lib/modules/2.6.30-8-default/source/include/linux/version.h' does not
       exist.  The most likely reason for this is that the kernel source files
       in '/lib/modules/2.6.30-8-default/source' have not been configured.
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.
发表于 2009-6-26 10:42:14 | 显示全部楼层
一键安装地址:
nVidia:
较新显卡安装 http://opensuse-community.org/nvidia.ymp
较旧显卡安装 http://opensuse-community.org/nvidia-legacy.ymp
回复 支持 反对

使用道具 举报

发表于 2009-6-26 11:40:52 | 显示全部楼层
装kernel-source
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-26 19:25:32 | 显示全部楼层
Post by struq;2001356
装kernel-source


是不是自己编译内核?
回复 支持 反对

使用道具 举报

发表于 2009-6-26 23:58:18 | 显示全部楼层
Post by katost;2001448
是不是自己编译内核?


kernel-source 是个软件包 楼主自己用yast搜一下就成
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-27 10:32:43 | 显示全部楼层
Post by cleopatra;2001508
kernel-source 是个软件包 楼主自己用yast搜一下就成

装完这个软件包后怎么使用!?

装这个软件包后回到命令行安装NVIDIA-Linux-x86_64-180.22-pkg2.run还是无法通过呢!
回复 支持 反对

使用道具 举报

发表于 2009-6-27 22:50:02 | 显示全部楼层
Post by katost;2001292
官方下了个 NVIDIA-Linux-x86_64-180.22-pkg2.run

运行sh NVIDIA-Linux-x86_64-180.22-pkg2.run -q出现错误!我还装少了什么?

错误代码:

  ERROR: Unable to find the system utility `ld`; please make sure you
         have the package 'binutils' installed.  If you do have
         binutils installed, then please check that `ld` is in your
         PATH.

                                   OK

原来上面的代码是一个部件没有装上,装上之后到命令行下面运行sh NVIDIA-Linux-x86_64-180.22-pkg2.run -q又出现了另外一个问题,翻译过来大意是说没有找到合适的KERNEL,然后又装不了,请问该如何解决?


11.2 目前最新是 M2,显卡驱动最好别装,多半不兼容。
回复 支持 反对

使用道具 举报

发表于 2009-6-28 15:15:14 | 显示全部楼层
把内核原文件,编译工具都装上。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-28 16:22:43 | 显示全部楼层
Post by beyond_2000;2001827
把内核原文件,编译工具都装上。


我查看了/lib/modules/2.6.30-8-default/source/include/linux,有这些文件阿,CC,MAKE,GCC都装了!
回复 支持 反对

使用道具 举报

发表于 2009-6-29 11:20:45 | 显示全部楼层
kernel-source没装吗?xorg devel之类的也装上
回复 支持 反对

使用道具 举报

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

本版积分规则

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