Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103655097
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-04-14 15:34:48

作者: joyrce  出自:
1.下载:

2.安装:nvidia驱动安装有一点很重要一定要在纯字符界面下。一般你可以init 3(rh系统的runlevel设置)等级进入系统或者已经登录图形的情况下,在字符界面运行init 3命令。然后给下载的它加上执行权

#chmod a+x NVIDIA-Linux-x86-1.0-6629-pkg1.run
--运行安装程序
#sh NVIDIA-Linux-x86-1.0-6629-pkg1.run

--安装出错

WARNING: You do not appear to have an NVIDIA GPU supported by the 1.0-8776
NVIDIA Linux graphics driver installed in this system. For further
details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in
the README available on the Linux driver download page at

License accepted.
-> A precompiled kernel interface for kernel 'Red Hat Linux 9 updated to kernel
2.4.20-8 Athlon' has been found here:
./usr/src/nv/precompiled/nv-linux.o-1.0-8776.rh9up_2.4.20-8_athlon.
executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.o precompiled-nv-li
nux.o nv-kernel.o'...
-> Kernel module linked successfully.
ERROR: Unable to load the kernel module 'nvidia.o'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s).

Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.

--安装时出错原因

目前nvidia 驱动主持2.4和2.6 内核,debian\fedora 用户安装驱动时注意安装 kernel-headers。


解决方法有如下三种:优先顺序3->2->1

方法1:

1.运行下面的命令来获得它的源码

#sh NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only

2.设置环境变量

#eXPort IGNORE_CC_MISMATCH=yes

3.进入源码文件夹,运行安装命令

#cd ../NVIDIA-Linux-x86-1.0-4496-pkg2

#make install

4.修改/etc/X11/XF86Config

然后改/etc/X11/XF86Config文件中的这段。
将显卡配置段 Driver "nv" (or Driver "vesa") 改为Driver "nvidia" ,在Module 部分

加上
Load "glx" ;
去掉
Load "dri"
Load "GLcore"

方法2:
export CC=gcc32
sh ./NVIDIA-Linux-x86-1.0-4496-pkg2.run

方法3:
./NVIDIA-Linux-x86-1.0-4496-pkg2.run --add-this-kernel
阅读(1179) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~