如何将 dbus 添加到嵌入式 python 包

How to add dbus to an embedded python package

我正在创建一个带有嵌入式 python 的综合 rpm 包,需要在我的构建中包含 dbus。

所以我尝试安装 dbus-python 并得到了这个错误:

configure: error: Package requirements (dbus-1 >= 1.6) were not met:

No package 'dbus-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.

想法? 谢谢!

您需要安装C级D-Bus开发包,dbus-devel