2010-03-25 41 views
0

我想在Ubuntu 8.04上编译Webkit。但是当我运行autogen.sh时,我得到 以下错误,说它需要更新版本的glib。那么安装glib时最安全的方式是什么,而不要让我的其他操作系统(因为其他需要2.16而webkit编译需要2.21)?如何编译需要更新版本的glib的程序

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. 

回答

0

你当然可以建立和使用配置的--prefix选项的地方安装“本地”,即$HOME下安装巧舌如簧2.21。这可能需要在配置WebKit包时传递合适的标志,但这是标准过程。