我在Eclipse Luna下安装了EclipseFP 2.6.4插件,然后重启。当它第一次开始尝试安装可执行文件时,没有成功安装。我浏览了所有生成的日志文件,发现两个包含错误:ansi-terminal-0.6.2.1 和 unix-compat-0.4.1.4。
unix-compat-0.4.1.4 的日志:
Configuring unix-compat-0.4.1.4...
setup-Cabal-1.18.1.3-x86_64-windows-ghc-7.8.3.exe: Missing dependency on a
foreign library:
* Missing C library: msvcrt
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.
ansi-terminal-0.6.2.1 的日志:
Configuring ansi-terminal-0.6.2.1...
setup-Cabal-1.18.1.3-x86_64-windows-ghc-7.8.3.exe: Missing dependency on a
foreign library:
* Missing C library: kernel32
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.
我为 Windows 64 位安装了Haskell Platform 2014.2.0.0。它在我的路上。我在某个地方读到了关于 MinGW 的必要性,并且 MinGW 和 MSYS 都已安装并且是最新的,并且它们的 bin 和 lib 文件夹在我的路径上。我检查了路径上的位置,libmsvctr.a
并libkernel32.a
在 C:\MinGW\mingw32\lib (在我的路径上)中找到了一个和。