|
楼主 |
发表于 2004-6-29 18:19:12
|
显示全部楼层
系统mdk10,系统安装有GLib-2.2.3,安装另一软件./configure时提示,需要GLib-2.4.0以上版本.下载GLib-2.4.2.tar.gz编译安装.安装后, /glib-2.4.2的glib-2.0.pc如下:prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums
Name: GLib
Description: C Utility Library
Version: 2.4.2
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
原来系统/usr/lib/pkgconfig中的glib-2.0.pc如下:
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums
Name: GLib
Description: C Utility Library
Version: 2.2.3
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
1,直接把glib-2.4.2中的glib-2.0.pc拷贝到/usr/lib/pkgconfig下并覆盖原glib-2.0.pc:
2,再编译要安装的软件,./configure时提示:
checking for GLib -version >=2.0.0
pkg-config -modversion glib -2.0 returned 2.4.2,but GLib(2.2.3)was found ! If pkg-config was corract,then it is best to remove the old version of GLib ,You may also be able to fix the error by modifying your LD_LIBRARY_PATH enviromint variable,or by editing /etc/ld.so.conf Make sure you have run ldconfig if that is required on your system. If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH to point to the correct configuration files.
configure :error
GLib 2.0 or letter is required.
If GLib is installed but not in the same location as pkg-config add the location of the file glib-2.0 pl to the enironment variable pkg_config_path.
请教要完整安装glib-2.4.2,还需要修改什么 ? |
|