LinuxSir.cn,穿越时空的Linuxsir!

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

nvidia显卡驱动老是搞不定!

[复制链接]
发表于 2006-9-14 11:26:53 | 显示全部楼层 |阅读模式
我已经安装好了LFS,BLFS也按照自己的需求基本做完了,可是nvidia的显卡驱动一直装不好,不知是什么原因?我的lfs是按照LFS-6.2来做的,没有任何改动,blfs是按照svn来做的,其中Xorg安装的是Xorg7.1版。nvidia是在官方下载的Linux Display Driver - IA32 8774版。我运行sh NVIDIA-Linux-x86-1.0-8774-pkg1.run命令后,出现了很多错误,我把日志中的部分内容贴出来,大家帮我看看问题出在哪里:


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
  force 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)
  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)

Unable to load: nvidia-installer ncurses user interface




In file included from include/linux/kernel.h:11,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:50,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/linkage.h:5:25: error: asm/linkage.h: 没有那个文件或目录
   In file included from include/linux/types.h:15,
                    from include/linux/kernel.h:13,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:50,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv.c:14:
   include/linux/posix_types.h:47:29: error: asm/posix_types.h: 没有那个文件或�
   柯�
   In file included from include/linux/kernel.h:13,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv-linux.h:50,
                    from /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv/nv.c:14:



/tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.c: 在函数 ‘nv_
   get_adapter_state’ 中:
   /tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.c:4119: 错误:r
   equest for member ‘nv_state’ in something not a structure or union
   make[3]: *** [/tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.o
   ] 错误 1
   make[2]: *** [_module_/tmp/selfgz6145/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src
   /nv] 错误 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [mdl] 错误 1
   make: *** [module] 错误 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
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.


请大家看看应该怎样解决?多谢回复!!
发表于 2006-9-14 16:15:13 | 显示全部楼层
似乎在拷贝头文件的时候,有文件没拷贝过去。
ls -l /usr/include/asm/linkage.h 存在不?

还有,你是不是没装 ncurses?
回复 支持 反对

使用道具 举报

发表于 2006-9-15 07:49:00 | 显示全部楼层
在控制台运行sh NVIDIA-Linux-x86-1.0-8774-pkg1.run  --kernel-name=内核版本号
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-15 09:52:06 | 显示全部楼层
还是不行呀!/usr/include/asm/linkage.h 这个文件是存在的,ncurses也已经安装好了,我在内核源码目录下make menuconfig可以进入ncurses模式;
sh NVIDIA-Linux-x86-1.0-8774-pkg1.run --kernel-name=内核版本号   问题依然!


     大家看看究竟是怎么回事呀!我安装LFS三次了,每次都是nvidia显卡驱动装不上,而且都是同样的错误提示,郁闷-----!
回复 支持 反对

使用道具 举报

发表于 2006-9-15 18:27:32 | 显示全部楼层
我的LFS是先安装了NVIDIA的驱动再安装的XFree。NVIDIA的驱动不能在X下安装,要在控制台下才能安装。
回复 支持 反对

使用道具 举报

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

本版积分规则

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