wxHaskell失败,因为它依赖于wx_macu-2.8

时间:2010-09-05 00:18:08

标签: haskell wxwidgets cabal wxhaskell cabal-install

我用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,或者我需要做些什么来解决这个问题呢?

1 个答案:

答案 0 :(得分:4)

这就是说你缺少一个C库,而不是一个Haskell库。 Cabal无法安装任意C库。

检查软件包管理器以获取您的发行版,以确保您完全了解wxWidgets-2.8,包括任何开发人员软件包。