LinuxSir.cn,穿越时空的Linuxsir!

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

./configure error while i install glade

[复制链接]
发表于 2004-5-4 18:12:21 | 显示全部楼层 |阅读模式
checking for GTK - version >= 1.2.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 was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: Cannot find GTK: Is gtk-config in path?

具体的config.log为:
patible install
configure:647: checking whether build environment is sane
configure:704: checking whether make sets ${MAKE}
configure:750: checking for working aclocal
configure:763: checking for working autoconf
configure:776: checking for working automake
configure:789: checking for working autoheader
configure:802: checking for working makeinfo
configure:816: checking whether to enable maintainer-specific portions of Makefiles
configure:869: checking for perl
configure:1007: checking host system type
configure:1028: checking build system type
configure:1048: checking for ranlib
configure:1078: checking for gcc
configure:1191: checking whether the C compiler (gcc ) works
configure:1207: gcc -o conftest conftest.c 1>&5
configure:1233: checking whether the C compiler (gcc ) is a cross-compiler
configure:1238: checking whether we are using GNU C
我的ld.so.conf为:
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/wine
发表于 2004-5-4 18:20:59 | 显示全部楼层

回复: ./configure error while i install glade

最初由 luoxb 发表
checking for GTK - version >= 1.2.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 was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error: Cannot find GTK: Is gtk-config in path?

具体的config.log为:
patible install
configure:647: checking whether build environment is sane
configure:704: checking whether make sets ${MAKE}
configure:750: checking for working aclocal
configure:763: checking for working autoconf
configure:776: checking for working automake
configure:789: checking for working autoheader
configure:802: checking for working makeinfo
configure:816: checking whether to enable maintainer-specific portions of Makefiles
configure:869: checking for perl
configure:1007: checking host system type
configure:1028: checking build system type
configure:1048: checking for ranlib
configure:1078: checking for gcc
configure:1191: checking whether the C compiler (gcc ) works
configure:1207: gcc -o conftest conftest.c 1>&5
configure:1233: checking whether the C compiler (gcc ) is a cross-compiler
configure:1238: checking whether we are using GNU C
我的ld.so.conf为:
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/wine


因为你没装GTK2, 你什么LINUX的啊?
发表于 2004-5-4 19:05:22 | 显示全部楼层
自己装一个,少什么就装什么
发表于 2004-5-4 19:05:24 | 显示全部楼层
自己装一个,少什么就装什么
发表于 2004-5-4 21:20:06 | 显示全部楼层

最好的解决办法

在装系统的时候,把所有的开发工具都装上
 楼主| 发表于 2004-5-4 22:30:35 | 显示全部楼层

谢谢各位

我装的redhad9.0,我也想从系统盘上装啊,不过我的光驱坏了.另一个就是如果下一个gtk.tar.gz装,也要./configure啊,能通过?
发表于 2004-5-4 22:35:58 | 显示全部楼层

回复: 谢谢各位

最初由 luoxb 发表
我装的redhad9.0,我也想从系统盘上装啊,不过我的光驱坏了.另一个就是如果下一个gtk.tar.gz装,也要./configure啊,能通过?


记住你的gtk版本很重要, 建议下载:gtk2-2.2.1-1.rpm, 这个是RH9光碟里的,或者更高的版本,你可以不必下载tar-ball, 下载rpm包
 楼主| 发表于 2004-5-5 13:08:10 | 显示全部楼层

再次困惑

[root@localhost download]# rpm -ivh gtk2-2.2.1-4.i386.rpm
Preparing...                ########################################### [100%]
        package gtk2-2.2.1-4 is already installed
它已经装了啊,还有什么可能啊,怎么装了会找不到?
 楼主| 发表于 2004-5-6 16:41:10 | 显示全部楼层

是否gtk+-包要装到usr/bin下才行???

Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (libxml-2.0 >= 2.4.1 gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
我这样试了一下./configure --prefix==/download配置glade,
因为我下的gtk+-包已经./configure make make install 在/download下,无异样,不过还是不行
 楼主| 发表于 2004-5-6 16:55:09 | 显示全部楼层

瞧这就是我的gtk+-2.0.pc

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
target=x11
                                                                                
gtk_binary_version=2.2.0
gtk_host=i686-pc-linux-gnu
                                                                                
Name: GTK+
Description: GIMP Tool Kit (${target} target)
Version: 2.2.1
Requires: gdk-${target}-2.0 atk
Libs: -L${libdir} -lgtk-${target}-2.0
Cflags: -I${includedir}/gtk-2.0
~
~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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