cabal 安装失败,因为缺少 C 库
cabal install fails because missing C library
我想通过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 的重要组成部分。缺少的是发展headers。先尝试 运行 sudo apt-get install libudev-dev
然后再安装 hemokit
.
我想通过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 的重要组成部分。缺少的是发展headers。先尝试 运行 sudo apt-get install libudev-dev
然后再安装 hemokit
.