3

wxをインストールしようとしています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 の両方のマルチライブラリ バージョンと通常バージョンを使用しています。私もそれらを再インストールしようとしました。

4

2 に答える 2

1

「sudo apt-get install libwxgtk-webview3.0-dev」を試してください。それは私のために働いた。

于 2015-12-09T15:59:15.837 に答える