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指南
Gentoo的手册,中文,对安装和研究linux很有帮助。 gentoo是很独特的发行版,和其他不同,安装需要手动一步步进行,软件安装也类似freebsd的port方式。具有高度定制性。
Gentoo Linux 安装笔记 Gentoo Linux 安装笔记 Gentoo Linux 安装笔记
Gentoo Linux 安装手册, Gentoo Linux安装完整教程, 内容详细, 包你一次就会, 绝对精彩. Gentoo Linux 安装手册完整教程!
Gentoo Linux是一套通用的、快捷的、完全免费的Linux发行,它面向开发人员和网络职业人员。与其他发行不同的是,Gentoo Linux拥有一套先进的包管理系统叫作Portage。在BSD ports的传统中,Portage是一套真正的自动...
gentoo linux 的安装,本人学习gentoo linux 3年的结晶,写成文档,仅供学习参考。
gentoolinux安装教程
Gentoo Linux 2008 x86手册(安装) Gentoo Linux 2008 x86手册(安装)
在Gentoo Linux下绘制高质量的PostScript矢量图形.pdf
SUN服务器安装Gentoo Linux全程指导,提供安装指南
Atheros AR8131 网卡驱动下载地址:(包括windows 驱动 和 Linux驱动) http://partner.atheros.com/Drivers.aspx Atheros AR9285无线网卡驱动,由开源项目MadWifi支持 在sourceforge搜索MadWifi可以找到: ...
Gentoo Linux文档 -- Gentoo Linux x86手册
在sun服务器上安装gentoo linux 2007 目前sun服务器只能安装gentoo debian
自从Gentoo 1.0面世后,它就像一场风暴,给Linux世界带来了巨大的惊喜,同时也吸引了大量的用户和开发者投入Gentoo Linux的怀抱。 有人这样评价Gentoo:快速、设计干净而有弹性,是一个现代模式的发行版。与其它...
Gentoo_Linux_x86手册.pdf Gentoo_Linux_x86手册.pdf Gentoo_Linux_x86手册.pdf
如何安装gentoo linux.docx
Gentoo Linux AMD64 手册
Gentoo Linux x86手册.pdf
关于如何安装Gentoo Linux.pdf