LinuxSir.cn,穿越时空的Linuxsir!

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

安装gtk时出错,求救

[复制链接]
发表于 2005-8-8 23:17:50 | 显示全部楼层 |阅读模式
./configure --prefix=/usr
出错信息如下:

checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES_CFLAGS...
checking for BASE_DEPENDENCIES_LIBS...
configure: error: Package requirements (glib-2.0 >= 2.6.0    atk >= 1.0.1    pango >= 1.8.0) 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.

不知道如何解决,请教!

自己怀疑是pango和xft的问题。
搜到一篇文章,/usr/lib/pkgconfig/pangoxft.pc 不存在导致的错误,但那篇的出错信息和这里不同,我重新安装了好几遍pango也没有pangoxft.pc,只有pango.pc  pangox.pc。
PKG_CONFIG_PATH的问题,也按照要求添加了export PKG_CONFIG_PATH=/usr/lib/pkgconfig:
/opt/gnome-2.8/lib/pkgconfig:
/lib/pkgconfig:
/usr/local/lib/pkgconfig:
/usr/X11R6/lib/pkgconfig
发表于 2005-8-8 23:41:37 | 显示全部楼层
configure: error: Package requirements (glib-2.0 >= 2.6.0 atk >= 1.0.1 pango >= 1.8.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

这不已经说得很清楚了吗?
gtk+是依赖glib, atk, pango的,你必须先安装这些包的开发包才能编译gtk+
回复 支持 反对

使用道具 举报

发表于 2005-8-9 00:56:11 | 显示全部楼层
apt-get install装下缺失的包
回复 支持 反对

使用道具 举报

发表于 2005-8-9 01:10:53 | 显示全部楼层
请你不要自己编译


debian 里安装软件直接 apt-get install 就行

apt 是自己处理依赖关系
装依赖 gtk 的软件会自己安装 gtk
不用手工去装
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-9 20:13:16 | 显示全部楼层
Post by pupilzeng
configure: error: Package requirements (glib-2.0 >= 2.6.0 atk >= 1.0.1 pango >= 1.8.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

这不已经说得很清楚了吗?
gtk+是依赖glib, atk, pango的,你必须先安装这些包的开发包才能编译gtk+


这个我自然看得懂,我是按照gtk的说明,按照顺序安装的,glib,atk,pango都已经装了
除了依赖问题还可能是什么原因?
跟xft有没有关系?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-10 20:18:55 | 显示全部楼层
libgtk1.2
libgtk2.0-0

我查了一下,这两个包都已经装上了。
我是在装wxpython的时候出错,提示:
checking for GTK+ version...
checking for pkg-config... /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:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

所以才自己去装gtk的,装到最后一个包gtk+-2.6.9时./configure出错了
checking for freetype-config... /usr/local/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Xft Pango backend is required for x11 target


我是按要求先装的Xft,后装的Pango,不知道这个问题怎么解决。昨天的错和今天的不一样?
谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-3-29 01:54:03 | 显示全部楼层
configure: error: Xft Pango backend is required for x11 target
和我的错误一样啊!!!
不知什么原因啊,在装gtk+-2.6.7前,那些依赖包都装了啊!!
回复 支持 反对

使用道具 举报

发表于 2006-3-29 07:18:36 | 显示全部楼层
Post by yellowcrane
这个我自然看得懂,我是按照gtk的说明,按照顺序安装的,glib,atk,pango都已经装了
除了依赖问题还可能是什么原因?
跟xft有没有关系?
要把对应的开发包,即 xxxxx[color="Red"]-dev 也装上
回复 支持 反对

使用道具 举报

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

本版积分规则

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