cabal安装失败,因为缺少C库

时间:2015-02-18 16:09:53

标签: linux ubuntu-14.04 cabal udev hidapi

我想通过命令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包,但问题没有解决!

1 个答案:

答案 0 :(得分:1)

udev库是Ubuntu的重要组成部分。缺少的是开发标题。首先尝试运行sudo apt-get install libudev-dev,然后再安装hemokit