【问题标题】:Modify upstart to provide more debugging information but can't configure upstart修改 upstart 以提供更多调试信息但不能配置 upstart
【发布时间】:2014-04-02 01:18:57
【问题描述】:

在嵌入式 ARM 设备上,Linux 3.12.8 在某些配置下启动缓慢。从引出的消息中,upstart 显然正在等待一些东西。但是,由于系统没有启动,所以很难查到是什么,而且登录issueinitctl也无法查到它在做什么。

构建它看起来应该很简单,但是./configure 不起作用。它显示的最后一点是:

checking for gcc option to accept ISO C99... -std=gnu99
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.22... yes
checking for nih-dbus-tool... no
checking for NIH... no
configure: error: Package requirements (libnih >= 1.0.2) were not met:

No package 'libnih' 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 NIH_CFLAGS
and NIH_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

我已经在整个 Ubuntu 存储库中搜索了 nihlibnih,甚至是 NIH。我正在尝试在内核 3.10.5 的 x86-64 Ubuntu 12.04 LTS 上执行此操作,以便暂时更容易成功。我错过了什么?

【问题讨论】:

    标签: upstart


    【解决方案1】:

    NIH Utility Library in Launchpad

    安装:

    sudo apt-get install libnih1
    

    开发包名为 libnih-dev 您可能还需要 libnih-dbus1libnih-dbus-dev 包。

    【讨论】:

    • 感谢您的回复。我做到了$ sudo apt-get install libnih-dev 并进入了下一个障碍:No package 'libnih-dbus' found。我尝试安装libnih-dbus,但它不知道任何此类包。
    • 通过安装libnih-dbus-dev 解决了上述问题。之后的障碍是No package 'dbus-1' found。`
    • 以上问题已通过sudo apt-get install libdbus-1解决。
    • 尝试 apt-rdepends 来获取完整的依赖列表。有关详细信息,请参阅此question
    猜你喜欢
    • 2014-11-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-11
    • 2017-11-22
    • 2012-03-17
    • 2014-10-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多