LinuxSir.cn,穿越时空的Linuxsir!

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

求教安装gnome时遇到的问题,谢谢[已解决]

[复制链接]
发表于 2008-3-3 10:17:57 | 显示全部楼层 |阅读模式
安装gnome时,总是提示libgnomecanvas-2.20.1.1编译错误,于是我在http://tinderbox.x86.dev.gentoo. ... anvas-2.20.1.1.html
搜索到他相应的use等信息。修改make.conf后单独安装他,结果还是一样的错误信息,一下为复制的错误信息:(部分,贴不下,2楼还有)
Calculating dependencies   ... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) gnome-base/libgnomecanvas-2.20.1.1 to /
* libgnomecanvas-2.20.1.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...        [ ok ]
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking libgnomecanvas-2.20.1.1.tar.bz2 ;-) ...                       [ ok ]
>>> Unpacking source...
>>> Unpacking libgnomecanvas-2.20.1.1.tar.bz2 to /var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/work
* Fixing OMF Makefiles ...
  [ ok ]
* Running elibtoolize in: libgnomecanvas-2.20.1.1
*   Applying portage-1.5.10.patch ...
*   Applying max_cmd_len-1.5.20.patch ...
*   Applying sed-1.5.6.patch ...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/work/libgnomecanvas-2.20.1.1 ...
* econf: updating libgnomecanvas-2.20.1.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating libgnomecanvas-2.20.1.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-gtk-doc --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
.
.
.
mv -f .deps/gnome-canvas-polygon.Tpo .deps/gnome-canvas-polygon.Plo
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0   -DGNOMECANVASLIBDIR=\""/usr/lib"\" -DGNOMECANVASDATADIR=\""/usr/share"\" -DGNOMECANVASPIXMAPDIR=\""/usr/share/pixmaps"\" -DGNOMECANVASBINDIR=\""/usr/bin"\" -DGNOMECANVASLOCALSTATEDIR=\""/var/lib"\" -DG_LOG_DOMAIN=\"GnomeCanvas\"    -O2 -march=i686 -pipe -MT gnome-canvas-text.lo -MD -MP -MF .deps/gnome-canvas-text.Tpo -c -o gnome-canvas-text.lo gnome-canvas-text.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -DGNOMECANVASLIBDIR=\"/usr/lib\" -DGNOMECANVASDATADIR=\"/usr/share\" -DGNOMECANVASPIXMAPDIR=\"/usr/share/pixmaps\" -DGNOMECANVASBINDIR=\"/usr/bin\" -DGNOMECANVASLOCALSTATEDIR=\"/var/lib\" -DG_LOG_DOMAIN=\"GnomeCanvas\" -O2 -march=i686 -pipe -MT gnome-canvas-text.lo -MD -MP -MF .deps/gnome-canvas-text.Tpo -c gnome-canvas-text.c  -fPIC -DPIC -o .libs/gnome-canvas-text.o
mv -f .deps/gnome-canvas-rect-ellipse.Tpo .deps/gnome-canvas-rect-ellipse.Plo
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0   -DGNOMECANVASLIBDIR=\""/usr/lib"\" -DGNOMECANVASDATADIR=\""/usr/share"\" -DGNOMECANVASPIXMAPDIR=\""/usr/share/pixmaps"\" -DGNOMECANVASBINDIR=\""/usr/bin"\" -DGNOMECANVASLOCALSTATEDIR=\""/var/lib"\" -DG_LOG_DOMAIN=\"GnomeCanvas\"    -O2 -march=i686 -pipe -MT gnome-canvas-rich-text.lo -MD -MP -MF .deps/gnome-canvas-rich-text.Tpo -c -o gnome-canvas-rich-text.lo .
.
.
-DGNOMECANVASDATADIR=\"/usr/share\" -DGNOMECANVASPIXMAPDIR=\"/usr/share/pixmaps\" -DGNOMECANVASBINDIR=\"/usr/bin\" -DGNOMECANVASLOCALSTATEDIR=\"/var/lib\" -DG_LOG_DOMAIN=\"GnomeCanvas\" -O2 -march=i686 -pipe -MT gailcanvaswidget.lo -MD -MP -MF
 楼主| 发表于 2008-3-3 10:18:37 | 显示全部楼层
.
.
.
totypes  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0   -DGNOMECANVASLIBDIR=\""/usr/lib"\" -DGNOMECANVASDATADIR=\""/usr/share"\" -DGNOMECANVASPIXMAPDIR=\""/usr/share/pixmaps"\" -DGNOMECANVASBINDIR=\""/usr/bin"\" -DGNOMECANVASLOCALSTATEDIR=\""/var/lib"\" -DG_LOG_DOMAIN=\"GnomeCanvas\"    -O2 -march=i686 -pipe -MT gailcanvastext.lo -MD -MP -MF .deps/gailcanvastext.Tpo -c -o gailcanvastext.lo gailcanvastext.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes -I/usr/include/gtk-2.0
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -o .libs/canvas_demo canvas.o canvas-primitives.o canvas-arrowhead.o canvas-features.o canvas-fifteen.o canvas-rich-text.o canvas-curve.o  ../libgnomecanvas/.libs/libgnomecanvas-2.so
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/libpangoft2-1.0.so.0, not found (try using -rpath or -rpath-link)
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserCreate'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetErrorCode'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetUserData'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParseBuffer'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ErrorString'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserFree'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetElementHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetBuffer'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetCharacterDataHandler'
collect2: ld returned 1 exit status
make[2]: *** [dash-demo] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/libpangoft2-1.0.so.0, not found (try using -rpath or -rpath-link)
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserCreate'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetErrorCode'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetUserData'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParseBuffer'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ErrorString'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserFree'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetElementHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetBuffer'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetCharacterDataHandler'
collect2: ld returned 1 exit status
make[2]: *** [canvas_demo] Error 1
make[2]: Leaving directory

`/var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/work/libgnomecanvas-2.20.1.1/demos'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/work/libgnomecanvas-2.20.1.1'
make: *** [all] Error 2
*
* ERROR: gnome-base/libgnomecanvas-2.20.1.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line  591:  Called gnome2_src_compile
*             environment, line  529:  Called die
* The specific snippet of code:
*       emake || die "compile failure"
*  The die message:
*   compile failure
*
* 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/gnome-base/libgnomecanvas-2.20.1.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/temp/environment'.
*

* Messages for package gnome-base/libgnomecanvas-2.20.1.1:

*
* ERROR: gnome-base/libgnomecanvas-2.20.1.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line  591:  Called gnome2_src_compile
*             environment, line  529:  Called die
* The specific snippet of code:
*       emake || die "compile failure"
*  The die message:
*   compile failure
*
* 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/gnome-base/libgnomecanvas-2.20.1.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/gnome-base/libgnomecanvas-2.20.1.1/temp/environment'.
*
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 10:19:19 | 显示全部楼层
=========================
以下是我的emerge --info信息:
=========================
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.73GHz
Timestamp of tree: Sun, 02 Mar 2008 09:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg cleanpkgdir distclean distlocks metadata-transfer nodoc noinfo sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://61.135.158.199"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://61.135.158.199/gentoo-portage"
USE="X acl alsa amd64 apache2 berkdb bindist bitmap-fonts boundschecking bzip2 cgi cli cracklib crypt cups dlloader dri esd fortran gdbm gpm hardened iconv ipv6 isdnlog jpeg justify midi mp3 mpeg mudflap ncurses nls nptl nptlonly ogg openmp oss pam pcre perl pic png pppd python readline reflection session snmp spl ssl sysfs tcpd tiff truetype-fonts type1-fonts unicode urandom userlocales vcd vorbis x86 xinerama xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


请各位大牛指点,万分感谢


上面的USE纯属狗急跳墙改的,原来的为:USE="X -kde -qt3 -qt4 gnome gtk dvd alas cdr"
我也试图把整个USE注释掉,依然不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 11:28:45 | 显示全部楼层
ln -s /usr/lib/libexpat.so.1.5.2 /usr/lib/libexpat.so.0
然后再emerge pango
然后再emerge gnome
,,,好了
回复 支持 反对

使用道具 举报

发表于 2008-3-3 11:53:52 | 显示全部楼层
Post by gaby84;1822433
ln -s /usr/lib/libexpat.so.1.5.2 /usr/lib/libexpat.so.0
然后再emerge pango
然后再emerge gnome
,,,好了


最好revdep-rebuild一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 12:05:16 | 显示全部楼层
Post by debianl;1822444
最好revdep-rebuild一下


3Q,已经运行了
all done
回复 支持 反对

使用道具 举报

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

本版积分规则

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