cashlu 发表于 2004-11-8 02:52:41

请教GTK+安装问题

请教一个问题,我想升级gtk到2.5.4,已经成功的安装了atk-1.7.3,glib-2.5.5,pango-1.6.0但是,./configure的时候,却有错误提示如下:
configure: error: Library requirements (glib-2.0 >= 2.5.4 atk >= 1.0.1 pango >= 1.5.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
请问这是怎么回事?

dlhstydysy 发表于 2004-11-8 03:12:27

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=89965

cashlu 发表于 2004-11-8 03:18:40

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=89965 谢谢,不过那篇帖子我看过了,我和那位朋友的情况有些不一样,我是atk,pango,glib都安装成功了,唯独gtk安装失败,提示那个错误信息

dlhstydysy 发表于 2004-11-8 03:27:26

我觉得应该是一样的
都是PKG_CONFIG找不到文件
你也许可以直接
(假设pango目录为/opt/pango ,atk为/opt/atk......)
对pango可以
export CFLAGS=-I/opt/pango/include
export CPPFLAGS=$CFLAGS
export LDFLAGS=-L/opt/pango/lib

atk与上相似,把pango改成atk就行,glib也一样.
你可以试试,反正又不会坏

dlhstydysy 发表于 2004-11-8 03:29:10

我也正在装gtk-2.4
郁闷的很,总是出错,现在信息是这样
error: Pango 1.2.0 and Xft backend is required for x11 target

:shock::shock::x

cashlu 发表于 2004-11-8 03:48:04

我觉得应该是一样的
都是PKG_CONFIG找不到文件
你也许可以直接
(假设pango目录为/opt/pango ,atk为/opt/atk......)
对pango可以
export CFLAGS=-I/opt/pango/include
export CPPFLAGS=$CFLAGS
export LDFLAGS=-L/opt/pango/lib

atk与上相似,把pango改成atk就行,glib也一样.
你可以试试,反正又不会坏谢谢,我想试试你说的方法,不过还有一个比较初级的问题,就是如何确定我的glib等都安装在什么位置了?比如说,我用rpm -ql glib命令,得到的结果如下,我怎么确定到底是哪一个?还有就是rpm -ql atk说atk没有安装,但是事实上我是安装了,那又怎么确定atk的安装路径?多谢

$ rpm -ql glib
/usr/lib/libglib-2.0.so.0.505.0
/usr/lib/libgmodule-2.0.so.0.505.0
/usr/lib/libgobject-2.0.so.0.505.0
/usr/lib/libgthread-2.0.so.0.505.0
/usr/share/doc/glib-2.5.5
/usr/share/doc/glib-2.5.5/AUTHORS.gz
/usr/share/doc/glib-2.5.5/ChangeLog.gz
/usr/share/doc/glib-2.5.5/NEWS.gz
/usr/share/doc/glib-2.5.5/README.gz
/usr/share/locale/am/LC_MESSAGES/glib20.mo
/usr/share/locale/ar/LC_MESSAGES/glib20.mo
/usr/share/locale/az/LC_MESSAGES/glib20.mo
/usr/share/locale/be/LC_MESSAGES/glib20.mo
/usr/share/locale/bg/LC_MESSAGES/glib20.mo
/usr/share/locale/bn/LC_MESSAGES/glib20.mo
/usr/share/locale/bs/LC_MESSAGES/glib20.mo
/usr/share/locale/ca/LC_MESSAGES/glib20.mo
/usr/share/locale/cs/LC_MESSAGES/glib20.mo
/usr/share/locale/cy/LC_MESSAGES/glib20.mo
/usr/share/locale/da/LC_MESSAGES/glib20.mo
/usr/share/locale/de/LC_MESSAGES/glib20.mo
/usr/share/locale/el/LC_MESSAGES/glib20.mo
/usr/share/locale/en_CA/LC_MESSAGES/glib20.mo
/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo
/usr/share/locale/eo/LC_MESSAGES/glib20.mo
/usr/share/locale/es/LC_MESSAGES/glib20.mo
/usr/share/locale/et/LC_MESSAGES/glib20.mo
/usr/share/locale/eu/LC_MESSAGES/glib20.mo
/usr/share/locale/fa/LC_MESSAGES/glib20.mo
/usr/share/locale/fi/LC_MESSAGES/glib20.mo
/usr/share/locale/fr/LC_MESSAGES/glib20.mo
/usr/share/locale/ga/LC_MESSAGES/glib20.mo
/usr/share/locale/gl/LC_MESSAGES/glib20.mo
/usr/share/locale/gu/LC_MESSAGES/glib20.mo
/usr/share/locale/he/LC_MESSAGES/glib20.mo
/usr/share/locale/hi/LC_MESSAGES/glib20.mo
/usr/share/locale/hr/LC_MESSAGES/glib20.mo
/usr/share/locale/id/LC_MESSAGES/glib20.mo
/usr/share/locale/is/LC_MESSAGES/glib20.mo
/usr/share/locale/it/LC_MESSAGES/glib20.mo
/usr/share/locale/ja/LC_MESSAGES/glib20.mo
/usr/share/locale/ko/LC_MESSAGES/glib20.mo
/usr/share/locale/lt/LC_MESSAGES/glib20.mo
/usr/share/locale/lv/LC_MESSAGES/glib20.mo
/usr/share/locale/mk/LC_MESSAGES/glib20.mo
/usr/share/locale/mn/LC_MESSAGES/glib20.mo
/usr/share/locale/ms/LC_MESSAGES/glib20.mo
/usr/share/locale/ne/LC_MESSAGES/glib20.mo
/usr/share/locale/nl/LC_MESSAGES/glib20.mo
/usr/share/locale/nn/LC_MESSAGES/glib20.mo
/usr/share/locale/no/LC_MESSAGES/glib20.mo
/usr/share/locale/or/LC_MESSAGES/glib20.mo
/usr/share/locale/pa/LC_MESSAGES/glib20.mo
/usr/share/locale/pl/LC_MESSAGES/glib20.mo
/usr/share/locale/pt/LC_MESSAGES/glib20.mo
/usr/share/locale/pt_BR/LC_MESSAGES/glib20.mo
/usr/share/locale/ro/LC_MESSAGES/glib20.mo
/usr/share/locale/ru/LC_MESSAGES/glib20.mo
/usr/share/locale/sk/LC_MESSAGES/glib20.mo
/usr/share/locale/sl/LC_MESSAGES/glib20.mo
/usr/share/locale/sq/LC_MESSAGES/glib20.mo
/usr/share/locale/sr/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@Latn/LC_MESSAGES/glib20.mo
/usr/share/locale/sr@ije/LC_MESSAGES/glib20.mo
/usr/share/locale/sv/LC_MESSAGES/glib20.mo
/usr/share/locale/ta/LC_MESSAGES/glib20.mo
/usr/share/locale/tr/LC_MESSAGES/glib20.mo
/usr/share/locale/uk/LC_MESSAGES/glib20.mo
/usr/share/locale/vi/LC_MESSAGES/glib20.mo
/usr/share/locale/wa/LC_MESSAGES/glib20.mo
/usr/share/locale/yi/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo
/usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
$

dlhstydysy 发表于 2004-11-8 04:21:20

对不起,这我就不知道了.
我用的是tar.gz包编译安装的
至于要查rpm包会安到什么目录下,好像是
rpm -pql | grip rpm包的名字(当前目录)

但是export CFLAGS=-I/...命令要怎么用就不知道了... :-(:oops:
页: [1]
查看完整版本: 请教GTK+安装问题