2
我安装与使用MacPorts的wxWidgets然后运行命令:sudo cabal install wx
,其中包括输出:wxHaskell失败,因为它依赖于wx_macu-2.8
/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库,如果这还不清楚的话。我只是不知道为什么我错过了它。我发现macports也有wxwidgets-devel,所以我正在安装这个知道的东西。 – None 2010-09-08 01:27:29
我安装了wxwidgets-devel,并且正在使用'sudo cabal install wx --extra-include-dirs =/opt /远。 – None 2010-09-10 03:23:02
安装工作! – None 2010-09-10 03:26:00