rethat下安装nvidia 显卡驱动问题解决方法



1.下载: http://www.nvidia.com/object/linux.html

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
         www.nvidia.com.
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



 
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值