我正在尝试在 Ubuntu 8.04 上编译 Webkit。但是当我运行 autogen.sh 时,我收到以下错误,说它需要更新版本的 glib。那么在不破坏我的操作系统其余部分的情况下安装 glib 的最安全方法是什么(因为其余部分需要 2.16 而 webkit 编译需要 2.21)?
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.21.3
gobject-2.0 >= 2.0
gthread-2.0 >= 2.0) were not met:
Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.16.6
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.