LinuxSir.cn,穿越时空的Linuxsir!

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

高人请进,帮忙解决个小问题。

[复制链接]
发表于 2005-12-19 17:28:14 | 显示全部楼层 |阅读模式
我的系统是SuSE 10.0
我在装openq时出现 了错误,帮忙看看怎么解决。
我先运行configure输出
。。。
。。。
。。。
。。。
checking GAIM_LIBS... -L/opt/gnome/lib -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.8.1)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
*** GTK+ 2.0 is required to build OpenQ; please make sure you have the
*** GTK+ development headers installed. The latest version of GTK+ is always
*** available at http://www.gtk.org/.
linux:/home/ivan.wong/openq-0.3.2 #

我以为是GTK版本 不够高 ,下了一个2.8.9版的 ,可是 configure时又出错

checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.7.1    atk >= 1.0.1    pango >= 1.9.0    cairo >= 0.9.2) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.
linux:/home/ivan.wong/MyDownloads/gtk+-2.8.9 #

弱弱的问一句 gtk2是不是 就是gtk+>2.0了 ?
发表于 2005-12-19 18:02:58 | 显示全部楼层
你的glib   atk  pango  cairo 的版本都达到要求没?
回复 支持 反对

使用道具 举报

发表于 2005-12-19 18:06:50 | 显示全部楼层
一看就是没装gtk2的devel rpm。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-19 18:33:48 | 显示全部楼层
Post by 终极幻想
你的glib   atk  pango  cairo 的版本都达到要求没?

glib (YaST Software Managment中是1.2.10-595)我自己装了一个2.9.1
atk (YaST Software Managment中是 1.10.3-2)
pango (YaST Software Managment中是1.10.0-3)
cairo (YaST Software Managment中是1.0.0-7)

我想可能是我自己装的那个glib没有检测到把,不知道 要怎么解决 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-19 18:36:28 | 显示全部楼层
Post by troll
一看就是没装gtk2的devel rpm。

我是在YaST 的software management中把gtk2和gtk2-devel都打上钩的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-19 19:42:32 | 显示全部楼层
这是我在没有装上新版gtk的情况下又试图装openq的输出错误信息
checking GAIM_CFLAGS... -I/opt/gaim1p5/include/gaim -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
checking GAIM_LIBS... -L/opt/gnome/lib -lglib-2.0
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.8.1, but GLIB (2.9.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLib 2.0 is required to build OpenQ; please make sure you have the
*** GLib development headers installed. The latest version of GLib is always
*** available at http://www.gtk.org/.
linux:/home/ivan.wong/openq-0.3.2 #
显然 是 glib 2.9.1已经 装上了 ,旧版本 如何卸载。?
回复 支持 反对

使用道具 举报

发表于 2005-12-19 19:59:49 | 显示全部楼层
你干嘛要装2.9.1这个版本,这个是开发中版本。而且同时有两个glib2, gtk2并不是什么好事。

现在你把自己装的卸载,旧版本是千万不能卸载的。
回复 支持 反对

使用道具 举报

发表于 2005-12-19 20:04:48 | 显示全部楼层
troll,你怎么会有一个级别阿:!!
[php]
级别: ★★★★★[/php]
回复 支持 反对

使用道具 举报

发表于 2005-12-19 20:10:50 | 显示全部楼层
该死的Konqueror,乱码。
回复 支持 反对

使用道具 举报

发表于 2005-12-19 20:26:21 | 显示全部楼层
知道了,哈哈,比你多一颗:p
回复 支持 反对

使用道具 举报

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

本版积分规则

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