|
|
小菜我接触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第一次提问,不知道是否能问的大家满意。有意见大家提出我以后改正。不管您的回答如何,小菜我先谢过了。 |
|