|
我用rpm包安装是不成功的,然后就用tar安装,当我进入 NVIDIA的kernel目录,不管是用make还是make install,都显示cc check不通过,显示如下
[root@Godloveall NVIDIA_kernel-1.0-4191]# make
You appear to be compiling the NVIDIA 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
然后我就用export IGNORE_CC_MISIMATCH=1;make
就出现了如下内容
[root@Godloveall NVIDIA_kernel-1.0-4191]# export IGNORE_CC_MISMATCH=1;make
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
make: cc: Command not found
make: *** [nv.o] Error 127
之后再用make命令就不行了.这是怎么回事啊?我用的是LINUX8.0升级了新内核.
还有一个问题就是我也下载了SRC的驱动,具体REBUILD命令应该怎样用呢?
我写的是:rpm --rebuilddb NVIDIA_kernel.src.rpm
这个命令是运行了的,但是生成的RPM要在哪里找呢?我在置顶的帖子里面的位置去找可什么也没有. |
|