Gentoo Linux下安装NVIDIA显卡驱动(NVIDIA installer can't find kernel source/build files)
来源:互联网 发布:淘宝客qq群怎么拉人 编辑:程序博客网 时间:2024/05/16 07:26
Gentoo 11.2默认为3.0.6内核,如果安装官方二进制NVIDIA显卡驱动,提示如下错误
ERROR: If you are using a Linux 2.4 kernel, please make sure you either have configured kernel sources matching your kernel or the correct set of kernel headers installed on your system. If you are using a Linux 2.6 kernel, please make sure you have configured kernel sources matching your kernel installed on your system. If you specified a separate output directory using either the "KBUILD_OUTPUT" or the "O" KBUILD parameter, make sure to specify this directory with the SYSOUT environment variable or with the equivalent nvidia-installer command line option. Depending on where and how the kernel sources (or the kernel headers) were installed, you may need to specify their location with the SYSSRC environment variable or the equivalent nvidia-installer command line option.
这是由于显卡驱动不支持3.0内核,可以给显卡驱动打补丁来安装,点击下载补丁文件--- conftest.sh.orig 2011-05-30 12:24:39.770031044 -0400+++ conftest.sh 2011-05-30 12:25:49.059315428 -0400@@ -76,7 +76,7 @@ } build_cflags() {- BASE_CFLAGS="-D__KERNEL__ \+ BASE_CFLAGS="-O2 -D__KERNEL__ \ -DKBUILD_BASENAME=\"#conftest$\" -DKBUILD_MODNAME=\"#conftest$\" \ -nostdinc -isystem $ISYSTEM"--- nv-linux.h.orig 2011-05-30 12:27:09.341819608 -0400+++ nv-linux.h 2011-05-30 12:27:28.854951411 -0400@@ -32,7 +32,7 @@ # define KERNEL_2_4 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) # error This driver does not support 2.5 kernels!-#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) # define KERNEL_2_6 #else # error This driver does not support development kernels!
然后执行
sh NVIDIA-Linux-x86_64-270.41.19.run -x
将驱动解压至当前目录,然后进入目录打上patch文件
cd NVIDIA-Linux-x86_64-270.41.19/kernel/patch -p0 < kernel-3.066.patch
然后
cd ..nvidia-install --kernel-source-path /usr/src/linux
安装成功OK!
- Gentoo Linux下安装NVIDIA显卡驱动(NVIDIA installer can't find kernel source/build files)
- Linux 下安装 NVIDIA 显卡驱动
- Linux 下安装 NVIDIA 显卡驱动
- Linux下安装NVIDIA显卡驱动(无集显)
- 安装Linux Nvidia显卡驱动
- linux 安装NviDIA显卡驱动
- linux安装Nvidia显卡驱动
- freebsd8.0安装nvidia驱动出现"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"错误,解决办法
- NVIDIA 显卡驱动安装
- NVIDIA显卡驱动安装
- 安装NVIDIA显卡驱动
- Linux下安装Run文件格式NVIDIA显卡驱动
- 如何在Linux下安装Nvidia显卡驱动
- Linux下安装Run文件格式NVIDIA显卡驱动
- Ubuntu Linux系统下安装NVIDIA显卡驱动
- Scentific Linux 6.1下安装nVIDIA显卡驱动
- Redhat Linux 6.0 下安装Nvidia显卡驱动
- 求助:Linux下Nvidia 显卡驱动的安装
- 错误:索引超出范围。必须为非负值并小于集合大小。参数名: index
- kmalloc/vmalloc获取memory的对齐方式
- ARM 思考题
- Android 基本空间划分
- dtree的使用
- Gentoo Linux下安装NVIDIA显卡驱动(NVIDIA installer can't find kernel source/build files)
- Analysis Services是什么?
- test
- 不错的blog收集
- 《微型电脑应用》2011年第11期刊登出《万能数据库查询分析器中的事务管理在Oracle中的应用》
- C++之头文件
- SAP ScriptForms 教程系列
- ListCtrl鼠标拖动Item
- Nginx源码剖析之内存池,与内存管理