Haskell cabal安装wx:缺少C库wx_gtk2u_webview-3.0

时间:2015-09-30 14:10:32

标签: haskell cabal wxhaskell

我正在尝试按cabal install wx

安装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和普通版本。我也尝试过重新安装它们。

2 个答案:

答案 0 :(得分:1)

我刚刚在Arch遇到了同样的问题;当我尝试使用--verbose=3运行cabal时,看起来libwx_gtk2u_webview-3.0存在,但它抱怨libwebkitgtk-1.0丢失了。安装webkitgtk2包后,提供libwebkitgtk-1.0,wxHaskell安装没有问题。

答案 1 :(得分:0)

尝试“sudo apt-get install libwxgtk-webview3.0-dev”。它对我有用。