LinuxSir.cn,穿越时空的Linuxsir!

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

安装glade出现缺少库的问题

[复制链接]
发表于 2006-4-18 15:05:10 | 显示全部楼层 |阅读模式
我在安装glade的时候,解压缩后,进入目录,./configure
然后出现的提示信息:checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for perl... /usr/bin/perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for os2.h... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libxml-2.0 >= 2.4.1 gtk+-2.0 >= 2.0.0... Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-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.

make的时候提示为:
make: *** 没有指明目标并且找不到 makefile。 停止。
最后提示少libxml-2.0 >= 2.4.1 gtk+-2.0 >= 2.0.但我的gtk是2呀,想要apt-get libxml
缺说找不到这个,用的是中国科技大学的源

另外还想问,如果源里有glade2.0和glade0.6.4如果我的系统里有适合glade0.6.4的库,而没有glade2.0的库是不是apt-get 时就默认装0.6.4?我查看了一下源,有glade的好多版本,为什么我
只能装0.6.4,其他版本apt-get 时都说找不到?
发表于 2006-4-18 19:54:07 | 显示全部楼层
Post by linus
make的时候提示为:
make: *** 没有指明目标并且找不到 makefile。 停止。
最后提示少libxml-2.0 >= 2.4.1 gtk+-2.0 >= 2.0.但我的gtk是2呀,想要apt-get libxml
缺说找不到这个,用的是中国科技大学的源
libxml2-dev ?
Post by linus
另外还想问,如果源里有glade2.0和glade0.6.4如果我的系统里有适合glade0.6.4的库,而没有glade2.0的库是不是apt-get 时就默认装0.6.4?我查看了一下源,有glade的好多版本,为什么我
只能装0.6.4,其他版本apt-get 时都说找不到?
你用的是 stable 的源?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-18 20:02:25 | 显示全部楼层
是的,按照你说的装上libxml2-dev可以安装上了,不过不太明白
为什么我apt-get install libxml时会说找不到呢?必须写全名吗?装其他的东西时不写全名也能
找得到
回复 支持 反对

使用道具 举报

发表于 2006-4-18 20:08:59 | 显示全部楼层
高版 glade 在 stable 是没有的
回复 支持 反对

使用道具 举报

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

本版积分规则

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