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

发布于 2024-09-18 10:50:44 字数 986 浏览 6 评论 0原文

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

I install wxWidgets with macports then ran the command: sudo cabal install wx which output included:

/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

I got the same error when I used this command: sudo cabal install wx --extra-include-dirs=/opt/local --extra-lib-dirs=/opt/local. How can I install wx_macu-2.8, or do what I need to do to fix this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空‖城人不在 2024-09-25 10:50:44

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

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

This is saying that you are missing a C library, not a Haskell library. Cabal can't install arbitrary C libraries.

Check the package manager for your distribution to make sure you have everything to do with wxWidgets-2.8, including any developer packages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文