IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    再一次安装gentoo过程中遇到的几个小问题

    sponge发表于 2011-03-04 15:44:52
    love 0

    1、在安装openoffice过程中出现大致如下的错误

    ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/desktop/zipintro 
    rmdir /var/tmp/portage/app-office/openoffice-3.2.1-r1/temp/yERj5YXC9A 
    make: *** [stamp/build] Error 1 
    * ERROR: app-office/openoffice-3.2.1-r1 failed: 
    * Build failed 
    * 
    * Call stack: 
    * ebuild.sh, line 54: Called src_compile 
    * environment, line 8141: Called die 
    * The specific snippet of code: 
    * make || die "Build failed" 
    * 
    * If you need support, post the output of 'emerge --info =app-office/openoffice-3.2.1-r1', 
    * the complete build log and the output of 'emerge -pqv =app-office/openoffice-3.2.1-r1'. 
    !!! When you file a bug report, please include the following information: 
    GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.22" 
    JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" 
    and of course, the output of emerge --info 
    * The complete build log is located at '/var/log/portage/app-office:openoffice-3.2.1-r1:20101120-141010.log'. 
    * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.2.1-r1/temp/environment'. 
    * S: '/var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo' 
     
    >>> Failed to emerge app-office/openoffice-3.2.1-r1, Log file: 
     
    >>> '/var/log/portage/app-office:openoffice-3.2.1-r1:20101120-141010.log'

    问题原因:openoffice依赖一个包imagemagick,该包编译时需要png。具体机制不详

    解决方法: USE="png" emerge -av imagemagick openoffice

    2、在root下面无法启动gedit等gui软件
    错误提示为:

    (gedit:5278): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported 
     
    ** 
    GLib-GIO:ERROR:gdbusconnection.c:2271:initable_init: assertion failed: (connection->initialization_error == NULL) 
    Aborted

    问题原因:su进入root后,只是简单的切换user,并不能提供一个全root的运行环境
    解决方法: 使用 su - 代替 su。 注意su和-之间有个空格。

    3、firefox字体模糊
    问题原因:系统开启了抗锯齿效果
    解决方法: 在/etc/fonts/fonts.conf文件中添加:

      target="font">
                     name="family" compare="eq">
                            >SimSun>"or"
                            >Bitstream Cyberbit>"or"
                            >AR PL KaitiM Big5>"or"
                            >AR PL Mingti2L Big5>"or"
                            >AR PL KaitiM GB>"or"
                            >AR PL SungtiL GB>
                    >
                     name="hinting" mode="assign">
                            >true>
                    >
                     name="autohint" mode="assign">
                            >true>
                    >
                     name="antialias" mode="assign">
                            >false>
                    >
    >

    4、在安装klibc过程中出现大致如下的错误

     * Applying klibc-1.5.11-x86_64-io.h-return.diff ...                                                                                                            [ ok ] 
    >>> Source unpacked in /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work 
    >>> Compiling source in /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15 ... 
    make -j3 defconfig CC=x86_64-pc-linux-gnu-gcc HOSTCC=x86_64-pc-linux-gnu-gcc 
    Makefile:434: *** mixed implicit and normal rules.  Stop. 
    emake failed 
     * ERROR: dev-libs/klibc-1.5.15-r1 failed: 
     *   No defconfig 
     * 
     * Call stack: 
     *     ebuild.sh, line  56:  Called src_compile 
     *   environment, line 2425:  Called die 
     * The specific snippet of code: 
     *       emake ${defconfig} CC="${CC}" HOSTCC="${HOSTCC}" || die "No defconfig"; 
     * 
     * If you need support, post the output of 'emerge --info =dev-libs/klibc-1.5.15-r1', 
     * the complete build log and the output of 'emerge -pqv =dev-libs/klibc-1.5.15-r1'. 
     * The complete build log is located at '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/temp/build.log'. 
     * The ebuild environment file is located at '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/temp/environment'. 
     * S: '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15' 
     
    >>> Failed to emerge dev-libs/klibc-1.5.15-r1, Log file: 
     
    >>>  '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/temp/build.log' 
     
     * Messages for package dev-libs/klibc-1.5.15-r1: 
     
     * ERROR: dev-libs/klibc-1.5.15-r1 failed: 
     *   No defconfig 
     * 
     * Call stack: 
     *     ebuild.sh, line  56:  Called src_compile 
     *   environment, line 2425:  Called die 
     * The specific snippet of code: 
     *       emake ${defconfig} CC="${CC}" HOSTCC="${HOSTCC}" || die "No defconfig"; 
     * 
     * If you need support, post the output of 'emerge --info =dev-libs/klibc-1.5.15-r1', 
     * the complete build log and the output of 'emerge -pqv =dev-libs/klibc-1.5.15-r1'. 
     * The complete build log is located at '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/temp/build.log'. 
     * The ebuild environment file is located at '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/temp/environment'. 
     * S: '/var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15'

    问题原因:高版本make的一个bug
    解决方法: 编译klibc的时候先将make版本降低

    emerge --oneshot =make-3.80-r4 
    emerge --oneshot klibc

    编译完成后再将版本升级回来

    emerge --update --oneshot make

    参考:

    http://forums.gentoo.org/viewtopic-t-849190.html?sid=d33383354a919e3ebabba9b36edd2d4e

    http://bugs.gentoo.org/345743

    http://forums.fedoraforum.org/archive/index.php/t-255624.html



沪ICP备19023445号-2号
友情链接