【问题标题】:cabal install fails because missing C librarycabal 安装失败,因为缺少 C 库
【发布时间】:2015-02-18 16:09:53
【问题描述】:

我想通过命令cabal install hemokit 命令安装 hemokit 驱动程序,但它告诉我它在安装依赖项“hidapi”时失败。这就是给我的信息

`Configuring hidapi-0.1.3...
cabal: Missing dependency on a foreign library:
* Missing C library: udev
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Failed to install hidapi-0.1.3

然后我运行命令sudo apt-get install udev安装udev包,但问题没有解决!

【问题讨论】:

  • udev 库是 Ubuntu 的关键组件。缺少的是开发标头。尝试运行sudo apt-get install libudev-dev next。
  • @AustinMullins,谢谢你的解决方案!
  • 我刚刚转发了我的评论作为你的答案:-)

标签: linux ubuntu-14.04 cabal udev hidapi


【解决方案1】:

udev 库是 Ubuntu 的关键组件。缺少的是开发标头。尝试先运行sudo apt-get install libudev-dev,然后安装hemokit

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-04
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多