wxHaskell 失败,因为它依赖于 wx_macu-2.8
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这说明您缺少 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.