% gzip -cd glib-2.6.6.tar.gz | tar xvf - # unpack the sources
% cd glib-2.6.6 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build GLIB
[ Become root if necessary ]
% rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h
% make install # install GLIB
没出现错误提示,后安装pango-1.8.2
[code:1][root@MagicLinux pango-1.8.2]# ./configure
..........................
checking XFT_LIBS... -L/usr/X11R6/lib -lXft -lfreetype -lXrender -lfontconfig
checking for glib-2.0 >= 2.5.7 gobject-2.0 gmodule-no-export-2.0... Requested 'glib-2.0 >= 2.5.7' but version of GLib is2.4.8
configure: error:
*** Glib 2.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.[/code:1]
pango安装成功,但是安装GTK时,
[code:1]checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... Requested 'pango >= 1.8.0' but version of Pango is 1.6.0
configure: error: Package requirements (glib-2.0 >= 2.6.0 atk >= 1.0.1 pango >= 1.8.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config. See the pkg-config man page for
more details.[/code:1]