3

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

4

2 回答 2

1

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

于 2015-11-06T22:54:50.093 回答
1

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

于 2015-12-09T15:59:15.837 回答