gpt4 book ai didi

Linux glib 需要 pkg-config 而 pkg-config 需要 glib?

转载 作者:IT王子 更新时间:2023-10-29 00:15:14 35 4
gpt4 key购买 nike

我尝试安装 udev。 udev 在 ./configure

期间给我一个错误
--exists: command not found configure: error:
pkg-config and "glib-2.0 >= 2.16" not found, please set GLIB_CFLAGS and GLIB_LIBS
to the correct values or pass --with-internal-glib to configure

好的,缺少 pkg-config 和 glib-2.0。

起初我尝试安装 pkg-config。我收到这条消息:

checking whether to list both direct and indirect dependencies... no
checking for Win32... no
checking if internal glib should be used... no
checking for pkg-config... no
./configure: line 13557: --exists: command not found
configure: error: pkg-config and "glib-2.0 >= 2.16" not found,
please set GLIB_CFLAGS and GLIB_LIBS to the correct values or
pass --with-internal-glib to configure

好的,我的解释是,缺少 glib。

下一步安装 Glib。

我收到了这条消息:

configure: error: in `/root/glib-2.33.3':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

但我现在很困惑。他们需要彼此吗?我的错误是什么?

最佳答案

正如您已经观察到的,pkg-config 和 glib 之间确实存在循环依赖关系。要破解它,pkg-config 的 source code包含一个 glib 版本,足以编译它。这应该会打破依赖循环。

尝试使用 --with-internal-glib 配置 pkg-config。

关于Linux glib 需要 pkg-config 而 pkg-config 需要 glib?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12262925/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com