簡體   English   中英

Haskell Cabal 安裝 wx:缺少 C 庫 wx_gtk2u_webview-3.0

[英]Haskell cabal install wx: missing C library wx_gtk2u_webview-3.0

我正在嘗試通過cabal install wx

Configuring wxc to build against wxWidgets 3.0
setup: Missing dependency on a foreign library:
* Missing C library: wx_gtk2u_webview-3.0
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.
cabal: Error: some packages failed to install :
wx-0.92.0.0 depends on wxc-0.92.0.0 which failed to install.
wxc-0.92.0.0 failed during the configure step. The exception was:
ExitFailure 1
wxcore-0.92.0.0 depends on wxc-0.92.0.0 which failed to install.

但我在/usr/lib有以下文件:

/usr/lib/libwx_gtk2u_webview-3.0.so
/usr/lib/libwx_gtk2u_webview-3.0.so.0
/usr/lib/libwx_gtk2u_webview-3.0.so.0.2.0

我也試過cabal install --extra-lib-dirs=/usr/lib/ wx但無濟於事。

我也嘗試了cabal install wx Missing C library 中的所有建議

我在 archlinux 上,我有 wxgtk-3.0 和 wxgtk-2.8 multilib 和普通版本。 我也嘗試重新安裝它們。

我剛剛在 Arch 上遇到了同樣的問題; 當我嘗試使用--verbose=3運行 cabal 時,看起來libwx_gtk2u_webview-3.0存在,但它抱怨libwebkitgtk-1.0丟失。 在我安裝了提供libwebkitgtk-1.0webkitgtk2包之后,wxHaskell 安裝沒有問題。

嘗試“sudo apt-get install libwxgtk-webview3.0-dev”。 它對我有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM