QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 839|回复: 13

./configure error 求救

[复制链接]
发表于 2004-5-4 18:26:42 | 显示全部楼层 |阅读模式
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 20:15:02 | 显示全部楼层

Re: ./configure error 求救

[quote:961ef9c182="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?[/quote]
回复

使用道具 举报

 楼主| 发表于 2004-5-5 12:48:23 | 显示全部楼层
楼上高人给点信息啊,大家快来帮帮我啊
回复

使用道具 举报

发表于 2004-5-5 13:23:53 | 显示全部楼层
没装gtk,到rpmfind.net 找了装上。
回复

使用道具 举报

 楼主| 发表于 2004-5-5 14:14:58 | 显示全部楼层
版主大哥,我已经装了啊
[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 23:06:35 | 显示全部楼层
否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下,无异样,不过还是不行

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

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
target=x11
回复

使用道具 举报

发表于 2004-5-6 23:09:12 | 显示全部楼层
如果你选择完全安装的话应该就不会出现这样的问题了。
回复

使用道具 举报

发表于 2004-5-7 00:05:51 | 显示全部楼层
需要的是gtk1不是2
回复

使用道具 举报

 楼主| 发表于 2004-5-7 13:29:26 | 显示全部楼层
小弟在此谢过各位好心的朋友,我已经解决了,下面将总结一下这次的处理过程
:1,一开始找不到gtk-config,因为没装gtk-devel,后来发现其他的devel也没有,下了
     gtk2-devel-2.2.1-4.i386.rpm,glib2-devel-2.2.1-1.i386.rpm ,             atk-devel-1.2.0-2.i386.rpm ,pango-devel-1.2.1-3.i386.rpm
2.
  另外就是我的gtk+-没装,或者版本太低,下了个2.2.1的tar包装,glib也装了个2.4.0的,本来这样./configure ,make,make install后就完了,可是还是提示找不到,原来./configure时没加安装路径(-prefix=/路径),不过在linux下不加也行不过你需要运行ldconfig(f you are installing in a system directory, on some systems (such as Linux), you will need to run ldconfig after make install so that the newly installed libraries will be found.)
  大概就是这样,可能有些是多余的,那我就不大清楚了,还有什么不对请各位指教,希望对其他有此类问题的朋友有益
回复

使用道具 举报

发表于 2004-5-7 14:21:54 | 显示全部楼层
我也遇到了./configure的问题,请楼主帮帮忙,错误提示如下:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for sed... /bin/sed
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
回复

使用道具 举报

发表于 2004-5-7 15:55:21 | 显示全部楼层
[quote:8ef47aceb6="Mai_520"]我也遇到了./configure的问题,请楼主帮帮忙,错误提示如下:
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

[/quote]
没装gcc,够清楚了
回复

使用道具 举报

发表于 2004-5-8 21:14:58 | 显示全部楼层
兄弟,话不要说一半嘛,gcc是什么?那有下。。
回复

使用道具 举报

 楼主| 发表于 2004-5-8 23:05:17 | 显示全部楼层
你可以到添加删除应用程序中从CDROM中添加啊,要不你就去下个了
回复

使用道具 举报

发表于 2004-5-9 09:30:58 | 显示全部楼层
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/

我记得大多数已经安装了,但是找不到的时候用上面这个命令就好了
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-17 00:58 , Processed in 0.085264 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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