LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: bjsm

GENTOO笨菜鸟之一日三问。

[复制链接]
发表于 2008-6-1 18:09:07 | 显示全部楼层
这个问题之前有很多人问过了,/etc/portage 下默认没有设置文件,所有设置文件都要您自行建立。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-1 18:15:30 | 显示全部楼层
我自己新建了一个package.mask。emerge --update --deep world.

jon jon # emerge --update --deep world
Calculating world dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-71.86.01 to /
* NVIDIA-Linux-x86-71.86.01-pkg0.run RMD160 SHA1 SHA256 size ;-) ...     [ ok ]
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking NVIDIA-Linux-x86-71.86.01-pkg0.run ;-) ...                    [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found kernel object directory:
*     /lib/modules/2.6.24-gentoo-r7/build
* Found sources for kernel version:
*     2.6.24-gentoo-r7
* Checking for MTRR support ...                                          [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-71.86.01-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 71.86.01........................................................................
* Applying NVIDIA_glx-defines.patch ...                                  [ ok ]
* Applying NVIDIA_glx-glheader.patch ...                                 [ ok ]
* Converting Makefile.kbuild to use M= instead of SUBDIRS= ...           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.01/work/NVIDIA-Linux-x86-71.86.01-pkg0/usr/src/nv ...
* Preparing nvidia module
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.

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
*
* ERROR: x11-drivers/nvidia-drivers-71.86.01 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3560:  Called linux-mod_src_compile
*             environment, line 2626:  Called die
* The specific snippet of code:
*               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                         CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                                 ${BUILD_FIXES}                 ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*  The die message:
*   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.24-gentoo-r7/build clean module
*
* 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-71.86.01/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.01/temp/environment'.
*

* Messages for package x11-drivers/nvidia-drivers-71.86.01:

*
* ERROR: x11-drivers/nvidia-drivers-71.86.01 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3560:  Called linux-mod_src_compile
*             environment, line 2626:  Called die
* The specific snippet of code:
*               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                         CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                                 ${BUILD_FIXES}                 ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*  The die message:
*   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.24-gentoo-r7/build clean module
*
* 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-71.86.01/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.01/temp/environment'.
*
又错。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-1 18:17:44 | 显示全部楼层
翻译: 英语 » 中文
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.                
如果您使用的是Linux 2.6内核,请务必
您所配置的内核源匹配你的内核
安装在您的系统。如果您指定一个单独的
输出目录使用“ kbuild_output ”或
“ O ”类kbuild参数,一定要指定此
目录与sysout环境变数或与
相当于NVIDIA公司- installer的命令行选项。
回复 支持 反对

使用道具 举报

发表于 2008-6-1 18:23:40 | 显示全部楼层
Gentoo 官方论坛有这样一个帖子是讨论这个问题的:http://forums.gentoo.org/viewtop ... dbe5d864a2116658dea,其中提到 http://forums.gentoo.org/viewtop ... r-asc-start-25.html 中的解决方案:
Post by Xaid
I just ran into the same problem and i think i know the reason its failing. It looks like in 2.6.24, there is no more "include/asm-i386" but we can use "include/asm-x86" (someone correct me if i'm wrong).
  I think ideally, nvidia-drivers should be using asm-x86 in this case but that will probably come in the next version.
  Doing the following should take care of the errors:
  1. cd /usr/src/linux/include
  2. ln -s asm-x86 asm-i386
复制代码

  如果您确定您的问题与之一致,您可以尝试一下上述方法。

  当然之前的回帖中也提到,请检查一下 /usr/src/linux 链接是否正确的问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-1 19:02:06 | 显示全部楼层
在问一个令我崩溃的问题。我emerge gnome-light.如何才不编译安装firefox.上次我装的时候先把firefox-bin装了,谁知道emerge gnome-light后,又给我编了一个firefox.我等了很久。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-1 19:02:51 | 显示全部楼层
Post by 亞利艾爾;1857729
Gentoo 官方论坛有这样一个帖子是讨论这个问题的:http://forums.gentoo.org/viewtop ... dbe5d864a2116658dea,其中提到 http://forums.gentoo.org/viewtop ... r-asc-start-25.html 中的解决方案:
  如果您确定您的问题与之一致,您可以尝试一下上述方法。

  当然之前的回帖中也提到,请检查一下 /usr/src/linux 链接是否正确的问题。


jon@jon /usr/src $ ls -l
总计 4
lrwxrwxrwx  1 root root   22 05-30 23:31 linux -> linux-2.6.24-gentoo-r7
drwxr-xr-x 21 root root 4096 06-02 02:32 linux-2.6.24-gentoo-r7
回复 支持 反对

使用道具 举报

发表于 2008-6-1 20:02:23 | 显示全部楼层
1. 如果 /usr/src/linux 没错,就
  1. cd /usr/src/linux/include
  2. ln -s asm-x86 asm-i386
复制代码

2. 之前有帖子说过,有些程序要求使用 mozilla-firefox 而不是 mozilla-firefox-bin,所以如果您发现不行,神也没有办法。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-1 20:27:25 | 显示全部楼层
cd /usr/src/linux/include

没有include这个目录。
回复 支持 反对

使用道具 举报

发表于 2008-6-1 21:46:13 | 显示全部楼层
USE=symlink emerge gentoo-sources
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-2 00:28:13 | 显示全部楼层
哥们,您真行。给我讲讲吧。USE=symlink。我查手册没查到。
回复 支持 反对

使用道具 举报

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

本版积分规则

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