LinuxSir.cn,穿越时空的Linuxsir!

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

NVIDIA的驱动问题,turbo linux7.0上顺利,mandrake8.0门都没有

[复制链接]
发表于 2002-8-21 20:18:32 | 显示全部楼层 |阅读模式
我装上了turbo linux7.0以后,我就把NVIDIA驱动的src.rpm包rebuild以后装上,只要在XF86Config中,添加Load "glx",Load "extmod",屏遮Load "GLcore",Load "dri",改Driver "nv"为Driver "nvidia",重启,一次就ok!3D的雷电可以运行。可是我的mandrake8.0用i386的包没有反应,rebuild src.rpm,只能是GLX的那个包可以成功,kernel的包就出错,只好用GLX的rebuild出来的i686的包,用下载的kernel的i386的包,我修改XF86Config-4,原来是一修改就不能运行X,现在是怎么修改都照常,3D还是不用,真是没辙了!
发表于 2002-8-21 21:05:18 | 显示全部楼层
用tar包来make一下。。
 楼主| 发表于 2002-8-21 21:48:35 | 显示全部楼层
[root@localhost NVIDIA_kernel-1.0-2960]# make
                                                           
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there  
are cases where this can lead to unexpected behaviour and  
system crashes.                                            
                                                           
If you know what you are doing and want to override this   
check, you can do so by setting IGNORE_CC_MISMATCH.        
                                                           
In any other case, set the CC environment variable to the  
name of the compiler that was used to compile the kernel.  
                                                           
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
[root@localhost NVIDIA_kernel-1.0-2960]#
------------------------------------
make了以后就是这个样子,如果rebuild src.rpm包的话是下面的样子:
---------------------------------------
[root@localhost VideoCard]# rpm --rebuild NVIDIA_kernel-1.0-2960.src.rpm
Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf NVIDIA_kernel-1.0-2960
+ /bin/gzip -dc /usr/src/RPM/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.0
++ echo 4.0
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.0
++ awk -F . '{print $2;}'
+ RPMMINOR=0
++ echo 4.0
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 0 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.53579: [: too many arguments
+ make NVdriver
                                                           
You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there  
are cases where this can lead to unexpected behaviour and  
system crashes.                                            
                                                           
If you know what you are doing and want to override this   
check, you can do so by setting IGNORE_CC_MISMATCH.        
                                                           
In any other case, set the CC environment variable to the  
name of the compiler that was used to compile the kernel.  
                                                           
*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.53579
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.3-20mdk
+ TARGET_KERNEL=2.4.3-20mdk
+ '[' -d /lib/modules/2.4.3-20mdk/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.3-20mdk/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.3-20mdk/kernel/drivers/video
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.3-20mdk/kernel/drivers/video
install: NVdriver: No such file or directory
Bad exit status from /var/tmp/rpm-tmp.53579 (%install)
[root@localhost VideoCard]#
----------------------------------------
rebuild NVIDIA_GLX-1.0-2960.src.rpm的时候,都没有这个情况,很顺利的就好了!
NVIDIA_GLX-1.0-2960.i686.rpm
发表于 2002-8-21 22:18:04 | 显示全部楼层
我跟你一样啊~~~~~~~~~~~~~~~~老兄~~~~~~~~~~~试试用GCC2.
发表于 2002-8-21 22:31:07 | 显示全部楼层

从前到后看一下这帖,会有点帮助。。

发表于 2002-8-22 20:20:00 | 显示全部楼层
install gcc2.9 everything will be OK!
 楼主| 发表于 2002-8-23 00:24:48 | 显示全部楼层
我的gcc就是2.96的!
发表于 2002-8-23 00:38:34 | 显示全部楼层
可是...........我用GCC2.96问题就解决了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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