为EclipseFP安装可执行文件时出现安装错误

为EclipseFP安装可执行文件时出现安装错误,eclipse,haskell,eclipse-fp,Eclipse,Haskell,Eclipse Fp,我在EclipseLuna下安装了EclipseFP2.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: Miss

我在EclipseLuna下安装了EclipseFP2.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.
我安装了适用于64位Windows的2014.2.0.0。它就在我的路上。我在某个地方读到关于MinGW是必要的,MinGW和MSYS都已安装并且是最新的,它们的bin和lib文件夹在我的路径上。我检查了路径上的位置,在C:\MinGW\mingw32\lib(在我的路径上)中找到了
libmsvctr.a
libkernel32.a


我想我遗漏了一些东西,但我没有在或上看到任何东西。

我不太清楚为什么会这样。我猜这与依赖关系有关(可能是一个版本),但问题出在我的PATH环境变量中。Haskell平台随MinGW一起提供。当我在PATH环境变量中将Haskell平台的目录移动到我的MinGW目录之上时,事情开始起作用


我的MinGW已经完全安装并且是最新的(至少据我所知),因此可能是Haskell平台的依赖性不是MinGW的标准部分,或者依赖于特定版本的工具。无论哪种方式,将Haskell平台目录(包括Haskell平台附带的MinGW)首先在我的路径变量中向上移动都可以解决问题。

在您的日志中,许多依赖软件包安装失败。对于每个故障,都会给出日志文件的路径。检查这些日志,看看有什么问题,可能只是一个独立的包导致了问题。@JPMoresmau我检查了所有日志,而不是随机检查了几个日志,发现两个报告了错误。但是,我不确定如何解决这些错误,特别是因为报告丢失的库在我的路径上。从EclipseFP启动安装时,路径可能有问题。尝试通过cabal install从命令行安装buildwrapper和scion browser,然后您可以配置EclipseFP以使用您安装的可执行文件。使用阴谋沙箱不要污染您的系统包数据库。
msvcrt
是Microsoft的Visual C运行库,但我认为您需要的是
.dll
而不是
.a
kernel32
也由Microsoft发布。您运行的是32位还是64位?什么版本的windows?@ja。我正在运行Windows7 64位、64位Eclipse、64位JDK、64位MinGW和用于Haskell平台的64位安装程序。当我不在手机上时,我会将此编辑成问题。