【问题标题】:How to compile a program which needs a newer version of glib如何编译需要更新版本 glib 的程序
【发布时间】:2010-03-25 07:53:36
【问题描述】:

我正在尝试在 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.

【问题讨论】:

    标签: ubuntu glib


    【解决方案1】:

    您当然可以使用 configure 的 @987654321@ 选项构建和安装 glib 2.21,将其安装在“本地”的某个地方,即在 $HOME 下。这可能需要在配置 WebKit 包时传递合适的标志,但这是标准过程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多