![](/img/trans.png)
[英]Missing native library to build an Haskell package with Cabal, on Linux
[英]cabal install fails because missing C library
我想通過命令cabal install hemokit
命令安裝bloodkit驅動程序,但是它告訴我在要安裝依賴項“ 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
,然后再安裝hemokit
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.