質問

MacPortsでWXWidgetsをインストールし、コマンドを実行しました。 sudo cabal install wx どの出力が含まれていますか:

/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
/bin/sh: wxdirect: command not found
Configuring wxcore-0.12.1.6...
setup: Missing dependency on a foreign library:
* Missing C library: wx_macu-2.8
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.12.1.6 depends on wxcore-0.12.1.6 which failed to install.
wxcore-0.12.1.6 failed during the configure step. The exception was:
ExitFailure 1

このコマンドを使用したときに同じエラーが発生しました。 sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. 。 WX_MACU-2.8をインストールするにはどうすればよいですか、またはこの問題を解決するために必要なことをするにはどうすればよいですか?

役に立ちましたか?

解決

これは、Haskellライブラリではなく、Cライブラリが欠けていると言っています。 Cabalは任意のCライブラリをインストールできません。

パッケージマネージャーが配布を確認して、開発者パッケージを含むWXWidgets-2.8と関係があることを確認してください。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top