我使用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,还是要做我需要做的事情来解决此问题?

有帮助吗?

解决方案

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

检查包装管理器的发行版本,以确保您与WXWIDGETS-2.8(包括任何开发人员软件包)有所有关系。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top