compiler-errors - 由于 glib 错误,无法处理 gobject-introspe

我正在运行 64 位 Debian Wheezy,我一直在尝试使用步骤 here. 编译 gobject-introspection当我最初尝试使用以下方法编译它时:

./configure --prefix=/usr --disable-static &&
make
它提示我的 GLib 版本太低(2.42.1)。于是我去编译了 GLib 2.44.0,并顺利安装了它。我试图再次编译它,但它返回了同样的错误。这是日志的相关部分。
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.44.0) were not met:

Requested 'glib-2.0 >= 2.44.0' but version of GLib is 2.42.1

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.
当我运行“gapplication version”和“gtester --version”时,我得到“2.44.0”,但是当我运行“gsettings --version”时它返回2.42.1——我的初始版本。不过,我不确定这是否相关。
任何建议都将受到欢迎并非常感谢。

最佳答案

获取版本的相关调用是 pkg-config --modversion glib-2.0 .错误消息告诉您需要做什么来修复它。

至于发生了什么,确实没有足够的信息可以确定,但我猜:您将前缀设置为/usr,默认情况下 libdir 是 $prefix/lib,并且 pkg-config 文件安装在 $libdir/pkgconfig .我的猜测是您的 pkg-config 正在查看/usr/lib64/pkgconfig 而不是/usr/lib/pkgconfig。如果你的 libdir 应该是/usr/lib64(或/usr/lib 以外的任何东西),你应该通过传递 --libdir=/usr/lib64 来设置它。到 glib 的配置脚本。

希望您没有覆盖任何现有的 32 位 glib 内容……如果您这样做了,您可能需要重新安装一些软件包。

关于compiler-errors - 由于 glib 错误,无法处理 gobject-introspection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29908444/

相关文章:

sql - 在插入第三个表之前,如何使用触发器从两个表中获取日期?

compiler-errors - 在Solaris Sparc 11下强制使用Sun Studio

compiler-errors - ifort composer_xe_2015.3.187的编译问

jsf - ServletContext.TEMPDIR无法解析或不是字段

scala - 使用 Deadbolt 2 : overriding method getSubje

compiler-errors - e编译错误数

compilation - 在Cygwin上编译GRUB(64位)

android - 按下按钮后应用程式当机,但 Action 正常

scala - 在scala中的构造函数内部调用函数

c# - 类数组使用产生错误 "NullReferenceException: Object ref