Fedora 1.0 core 安装Nvidia驱动
由于nvidia4496pkg2的驱动不认fedora的内核,所以不能用sh
NVIDIA-Linux-x86-1.0-4496-pkg2.run的方法来安装
1]下载 NVIDIA-Linux-x86-1.0-4496-pkg2.run
http://www.linuxfans.org/nuke/modules.php?name=Site_Downloads&op=geninfo&did=1569
2]运行下面的命令来获得它的源码
#sh NVIDIA-Linux-x86-1.0-4496-pkg2.run --extract-only
3]设置环境变量
#export IGNORE_CC_MISMATCH=yes
4]进入源码文件夹,运行安装命令
#cd ../NVIDIA-Linux-x86-1.0-4496-pkg2
#make install
5]修改/etc/X11/XF86Config
然后改/etc/X11/XF86Config文件中的这段。
Section "Device"
Identifier "Videocard0"
Driver "nv"把这里的nv 改成nvidia
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 2 MX (generic)"
EndSection 其实设置环境变量后直接
./NVIDIA-Linux-x86-1.0-4496-pkg2.run
就行了。 :roll: # make install
cd usr/src/nv; make install
make: Entering directory `/root/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
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=4496-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: *** Error 127
make: Leaving directory `/root/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
make: *** Error 2
能帮我看看这是什么原因吗? 顶呀! 为什么我不能#cd ../NVIDIA-Linux-x86-1.0-4496-pkg2
make: cc: Command not found
make: *** Error 127
make: Leaving directory `/root/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv'
make: *** Error 2
能帮我看看这是什么原因吗?
没装gcc,把开发包装上。
页:
[1]