【问题标题】:how to resolve dbus dependency on libnih ./configure?如何解决 dbus 对 libnih ./configure 的依赖?
【发布时间】:2013-01-18 01:05:18
【问题描述】:

在vps环境下,我刚刚安装

dbus-1.6.8

要求

libnih-1.0.3

但是,libnih 的安装在此处停止:

checking for DBUS... no
configure: error: Package requirements (dbus-1 >= 1.2.16) 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.
See the pkg-config man page for more details.

在哪里设置 PKG_CONFIG_PATH 环境变量?

我的 dbus 路径是:

/home/MYUSER/usr/local/bin/lib/dbus-1.0

【问题讨论】:

    标签: compiler-construction vps configure dbus upstart


    【解决方案1】:

    检查 dbus-1.0 目录,它可能有一个 pkg_config (pr somesuch) 子目录。

    然后,设置 PKG_CONFIG_PATH 以包含该子目录:

    export PKG_CONFIG_PATH=/home/MYUSER/usr/local/bin/lib/dbus-1.0/SUBDIR:$PKG_CONFIG_PATH
    

    【讨论】:

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