QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5670|回复: 5

我的./configure出问题,望解答

[复制链接]
发表于 2005-11-28 08:19:01 | 显示全部楼层 |阅读模式
checking for GTK... Requested 'gtk+-2.0 >= 2.6.0' but version of GTK+ is 2.4.14
configure: error: Package requirements (gtk+-2.0 >= 2.6.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 GTK_CFLAGS and GTK_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.
我已yum install curl-devel gtk2-devel boost-devel
成功.
最好有GTK2.6以上的rpm
 楼主| 发表于 2005-11-28 09:49:02 | 显示全部楼层
checking for BASE_DEPENDENCIES... Requested 'glib-2.0 >= 2.7.1' but version of GLib is 2.4.7
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 environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

You have new mail in /var/spool/mail/root
[root@localhost gtk+-2.8.7]#
回复

使用道具 举报

 楼主| 发表于 2005-11-28 09:51:14 | 显示全部楼层
我已安装glib-2.8.4为何说我没装?

make[4]: Leaving directory `/root/glib-2.8.4/gobject'
make[3]: Leaving directory `/root/glib-2.8.4/gobject'
make[2]: Leaving directory `/root/glib-2.8.4/gobject'
Making install in gmodule
...........................................................................
-- Installing ./html/glib-The-Main-Event-Loop.html
-- Installing ./html/glib-Thread-Pools.html
-- Installing ./html/glib-Threads.html
-- Installing ./html/glib-Timers.html
-- Installing ./html/glib-Trash-Stacks.html
-- Installing ./html/glib-Type-Conversion-Macros.html
-- Installing ./html/glib-Unicode-Manipulation.html
-- Installing ./html/glib-utilities.html
-- Installing ./html/glib-Version-Information.html
-- Installing ./html/glib-Warnings-and-Assertions.html
-- Installing ./html/glib-Windows-Compatability-Functions.html
-- Installing ./html/home.png
................................................................
make[5]: Leaving directory `/root/glib-2.8.4/docs/reference/gobject'
make[4]: Leaving directory `/root/glib-2.8.4/docs/reference/gobject'
make[4]: Entering directory `/root/glib-2.8.4/docs/reference'
make[5]: Entering directory `/root/glib-2.8.4/docs/reference'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/root/glib-2.8.4/docs/reference'
make[4]: Leaving directory `/root/glib-2.8.4/docs/reference'
make[3]: Leaving directory `/root/glib-2.8.4/docs/reference'
make[3]: Entering directory `/root/glib-2.8.4/docs'
make[4]: Entering directory `/root/glib-2.8.4/docs'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/root/glib-2.8.4/docs'
make[3]: Leaving directory `/root/glib-2.8.4/docs'
make[2]: Leaving directory `/root/glib-2.8.4/docs'
make[1]: Leaving directory `/root/glib-2.8.4'
[root@localhost glib-2.8.4]#
当我装atk-1.10.1时,问题来拉
[root@localhost atk-1.10.1]# ./configure
........................................
checking for aclocal flags...
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.5.7... no
*** Could not run GLIB 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 GLIB is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB 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 GLIB is incorrectly installed.
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
You have new mail in /var/spool/mail/root
[root@localhost atk-1.10.1]#
装 pango-1.10.1时一样问题
[root@localhost ~]# cd pango-1.10.1
[root@localhost pango-1.10.1]# ./configure
................................................................
checking for FONTCONFIG... checking for freetype-config... /usr/bin/freetype-con fig
checking for FT_Get_Next_Char in -lfreetype... yes
checking for XFT... checking for CAIRO... Package cairo was not found in the pkg -config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
checking for GLIB... Requested 'glib-2.0 >= 2.5.7' but version of GLib is 2.4.7
configure: error:
*** Glib 2.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.
有没有其它的安装GTK高级版本方法
如yum rpm 请指教
累死拉!
回复

使用道具 举报

发表于 2005-11-28 09:52:53 | 显示全部楼层
升级gtk到 2.6+就可以了
还要装gtk2dev
回复

使用道具 举报

 楼主| 发表于 2005-11-28 12:39:48 | 显示全部楼层
我已yum install curl-devel gtk2-devel boost-devel
成功
问题升级gtk到 2.6+也要安GLib, GTK+, Pango, and ATK 一堆
会碰到同样问题
有没有好的方法安gtk
回复

使用道具 举报

 楼主| 发表于 2005-11-28 12:42:47 | 显示全部楼层
我是FC3全安装
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-3-29 17:48 , Processed in 0.149729 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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