LinuxSir.cn,穿越时空的Linuxsir!

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

安装NV7300显卡失败

[复制链接]
发表于 2008-11-19 18:35:05 | 显示全部楼层 |阅读模式
小菜我接触LINUX三个月时间。一直处于自学状态。由于瞻仰了置顶的关于如何提问的帖子,一直有难处自己上网找答案。但最近牵扯到显卡驱动问题实在是过不去这坎了。特发本论坛本人处女贴,望各位LINUX老鸟指点一二。

     本人使用gentoo linux2008  内核版本 2.6.24-gentoo-r5 按照gentoo文档提示,知道了需要编译内核。于是找到 /usr/src/ 发现里边并没有所说的 linux 目录,无法make menuconfig    于是我直接执行了 emerge nvidia-drivers  出现了如下错误:

前边省略。。。。。。。
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking NVIDIA-Linux-x86-169.09-pkg0.run ;-) ...                      [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found sources for kernel version:
*     
  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

2.
  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

6.
  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

24
  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

-gentoo-r7
/usr/portage/eclass/linux-info.eclass: line 219: [: too many arguments
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
*
* ERROR: x11-drivers/nvidia-drivers-169.09-r1 failed.
* Call stack:
*                         ebuild.sh, line   49:  Called pkg_setup
*   nvidia-drivers-169.09-r1.ebuild, line  145:  Called linux-mod_pkg_setup
*                  linux-mod.eclass, line  466:  Called require_configured_kernel
*                 linux-info.eclass, line  145:  Called die
* The specific snippet of code:
*                   die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*  The die message:
*   Kernel not configured; no .config found in /usr/src/linux
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.09-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.09-r1/temp/die.env'.
*

* Messages for package sys-kernel/gentoo-sources-2.6.24-r7:

* If you are upgrading from a previous kernel, you may be interested
* in the following documents:
*   - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
*   - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml

* Messages for package sys-power/acpid-1.0.6-r1:

* As of version 1.0.6, acpid uses system log facility instead of custom log
* file. This means acpid messages will be usually located in
* /var/log/messages (and not in /var/log/acpid) for common setups.

* Messages for package x11-drivers/nvidia-drivers-169.09-r1:

* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.
*
* ERROR: x11-drivers/nvidia-drivers-169.09-r1 failed.
* Call stack:
*                         ebuild.sh, line   49:  Called pkg_setup
*   nvidia-drivers-169.09-r1.ebuild, line  145:  Called linux-mod_pkg_setup
*                  linux-mod.eclass, line  466:  Called require_configured_kernel
*                 linux-info.eclass, line  145:  Called die
* The specific snippet of code:
*                   die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
*  The die message:
*   Kernel not configured; no .config found in /usr/src/linux
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.09-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.09-r1/temp/die.env'.
*
* Regenerating GNU info directory index...
* Processed 166 info files.

然后我执行eselect一看,竟然是这样一个结果:
Available kernel symlink targets:
  [1]   linux-2.6.24-gentoo-r7 *

但我看文档上说好像是要与自己内核一样啊。我的是 r5 的内核啊 。。很忙然。。不知道下一步该怎么做了,升级内核么?还是该怎么样??

PS:小菜我初接触LINUX第一次提问,不知道是否能问的大家满意。有意见大家提出我以后改正。不管您的回答如何,小菜我先谢过了。
发表于 2008-11-19 19:03:05 | 显示全部楼层
你现在用的内核是你自己编译的么?
回复 支持 反对

使用道具 举报

发表于 2008-11-19 20:28:12 | 显示全部楼层
总而言之你需要自己先编译一遍内核,然后才能emerge nvidia-drivers,否则肯定是不行的。

安装内核要用emerge -av gentoo-sources(别忘了开symlink这个use),编译内核建议用genkernel,先emerge -av genkernel

安装好genkernel和gentoo-sources之后

genkernel --menuconfig --install --bootloader=grub all

对于内核配置方面的东西可以去基础知识区找文章看看。然后结合gentoo的nv显卡安装文档正确设置之后方可emerge nvidia-drivers
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-19 22:33:19 | 显示全部楼层
Post by zhllg;1910788
你现在用的内核是你自己编译的么?


呵呵,久仰2楼大名。。亲临指导,小弟不胜感激。。我还不会编译,下载下来的光盘直接就是2.6.24-gentoo-r5 的。。。看到文档说需要编译成与内核一致,才想要尝试编译内核的。。看了许多你点评过的帖子了。当初关于gentoo中文化的问题就是看你帖子弄的。。呵呵。。3楼的兄弟也谢谢你了。你的意思我理解大概就是必须要升级自己的内核来将就显卡的模块。。是这个意思么??
回复 支持 反对

使用道具 举报

发表于 2008-11-19 23:37:32 | 显示全部楼层
不是将就
用gentoo一定要自己编译,至少要用genkernel
回复 支持 反对

使用道具 举报

发表于 2008-11-20 00:28:52 | 显示全部楼层
nvidia的开源驱动不知道怎么样?ati的开源驱动radeonhd最新的版本(1.2.3)结合Xorg 1.5.2已经可以使用DRI了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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