./configure error 求救
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.c1>&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
Re: ./configure error 求救
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? 楼上高人给点信息啊,大家快来帮帮我啊 没装gtk,到rpmfind.net 找了装上。 版主大哥,我已经装了啊
# rpm -ivh gtk2-2.2.1-4.i386.rpm
Preparing... ###########################################
package gtk2-2.2.1-4 is already installed 否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 如果你选择完全安装的话应该就不会出现这样的问题了。 需要的是gtk1不是2 小弟在此谢过各位好心的朋友,我已经解决了,下面将总结一下这次的处理过程
: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.)
大概就是这样,可能有些是多余的,那我就不大清楚了,还有什么不对请各位指教,希望对其他有此类问题的朋友有益 我也遇到了./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. 我也遇到了./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
没装gcc,够清楚了 :mrgreen: 兄弟,话不要说一半嘛,gcc是什么?那有下。。 你可以到添加删除应用程序中从CDROM中添加啊,要不你就去下个了 export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
我记得大多数已经安装了,但是找不到的时候用上面这个命令就好了
页:
[1]