LinuxSir.cn,穿越时空的Linuxsir!

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

emerge world出错

[复制链接]
发表于 2005-9-20 10:18:33 | 显示全部楼层 |阅读模式
今天emerge world,升级到xmms的时候出错了:

checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.2... no
*** Could not run GTK test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GTK or finding the wrong
*** version of GTK. If it is not finding GTK, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you should remove the GTK package that
*** came with the system with the command
***
***    rpm --erase --nodeps gtk gtk-devel
configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/xmms-1.2.10-r15/work/xmms-1.2.10/config.log

!!! ERROR: media-sound/xmms-1.2.10-r15 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

似乎是gtk+版本的问题,可是不知道该怎么解决,请大家帮帮忙
发表于 2005-9-20 12:00:50 | 显示全部楼层
系统不是已经告诉你了该怎么做吗?!

GTK+ >= 1.2.2 not installed - please install first ***
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-20 13:10:56 | 显示全部楼层
我以前装过xmms,显然gtk是装了的,系统说的不一定就是错误所在
回复 支持 反对

使用道具 举报

发表于 2005-9-20 13:51:40 | 显示全部楼层
应该是你缺少/usr/include目录下某些文件.
我装kylix3的时候动了这个目录里的文件.结果也出现这个情况.
你重新emerge gtk试试.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-20 14:07:44 | 显示全部楼层
谢谢两位的回复,原来是USE变量的问题
以前看了篇优化的文章,在make.conf里加了LDFLAGS="-Wl,-O1 -Wl,--as-needed"
去掉这一句就没问题了,就是不清楚为什么
回复 支持 反对

使用道具 举报

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

本版积分规则

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