首先根据GNOME配置指南http://www.gentoo.org/doc/zh_cn/gnome-config.xml修改/etc/make.conf
USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal avahi"
然后运行#emerge gnome 这时出现错误的提示,
!!!disabling USE flags that trigger optional dependencies
在网上查找,去除avahi的USE标记即可以运行了。
USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal"
重新运行#emerge gnome 另出现错误的提示:
!!!A file listed in the Manifest could not be found :/usr/portage/media-libs/libpng/libpng-1.2.31.ebuild
查看那目录只有低版本的libpng,没有libpng-1.2.31.ebuild。用#emerge --sync 更新portage树,即解决这个问题.
接着就开始下载包及安装。但是安装到swfdec-0.6.6-r1包时提示出错如下:
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-libs/swfdec-0.6.6-r1/work/swfdec-0.6.6/config.log
ERROR: media-libs/swfdec-0.6.6-r1 failed.
Call stack:
ebuild.sh, line 49: Called src_compile
environment, line 2623: Called econf 'src_compile' 'src_compile' '--disable-gtk-doc' '--disable-gstreamer' '--enable-gtk'
ebuild.sh, line 513: Called die
The specific snippet of code:
die "econf failed"
The die message:
econf failed
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/media-libs/swfdec-0.6.6-r1/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/media-libs/swfdec-0.6.6-r1/temp/environment'.
查看LOG文件,是在checking ALSA 时出错,似乎ALSA未安装,然后根据《Gentoo Linux ALSA指南》http://www.gentoo.org/doc/zh_cn/alsa-guide.xml#doc_chap2_pre3,配置内核,发现我的配置已是正确的。
再继续浏览这篇文章,看到要把alsa加入到/etc/make.conf的USE里就可以使用ALSA,接下来我把USE修改如下:USE="-qt3 -qt4 -arts -kde X dbus gtk gnome hal alsa"
emerge gnome 就可以继续安装了。
作者:setsail_wu