【问题标题】:wxHaskell fails because it depends on wx_macu-2.8wxHaskell 失败,因为它依赖于 wx_macu-2.8
【发布时间】:2011-04-08 08:29:28
【问题描述】:

我用 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 wxwidgets cabal wxhaskell cabal-install


    【解决方案1】:

    这是说您缺少 C 库,而不是 Haskell 库。 Cabal 无法安装任意 C 库。

    检查您的发行版的包管理器,确保您拥有与 wxWidgets-2.8 相关的所有内容,包括任何开发者包。

    【讨论】:

    • 我知道我错过了一个 C 库,如果不清楚的话。我只是不知道为什么我错过了它。我发现macports也有wxwidgets-devel,所以我安装那个就知道了。
    • 我安装了wxwidgets-devel,正在使用sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local安装,目前看来还可以。
    猜你喜欢
    • 2013-02-20
    • 2019-12-30
    • 2023-02-12
    • 2023-01-04
    • 2022-07-24
    • 2018-06-21
    • 2018-07-17
    • 2022-07-05
    • 2020-07-01
    相关资源
    最近更新 更多