代码之家  ›  专栏  ›  技术社区  ›  None

wxHaskell之所以失败,是因为它依赖于wx\u macu-2.8

  •  2
  • None  · 技术社区  · 16 年前

    我用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

    1 回复  |  直到 16 年前
        1
  •  4
  •   Paul Johnson    16 年前

    这意味着您缺少的是一个C库,而不是Haskell库。阴谋集团不能安装任意的C库。

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