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



我在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平台2014.2.0.0。它在我的道路上。我在某处读到有关 MinGW 是必要的,MinGW 和 MSYS 都是已安装的和最新的,它们的 bin 和 lib 文件夹在我的道路上。我检查了路径上的位置,并在 C:\MinGW\mingw32\lib(在我的路径上)中找到了一个libmsvctr.alibkernel32.a

我想我错过了一些东西,但我在常见问题解答或支持论坛上没有看到任何内容。

我不完全确定为什么会这样。我猜这与依赖项有关(也许归结为版本),但问题出在我的 PATH 环境变量中。Haskell平台附带MinGW。当我在我的PATH环境变量中将Haskell平台的目录移到我的MinGW目录上方时,事情开始工作。

我的MinGW

是完全安装的和最新的(至少据我所知),所以Haskell平台的依赖项可能不是MinGW的标准部分,或者依赖于特定版本的工具。无论哪种方式,在我的PATH变量中首先移动Haskell平台目录(包括Haskell平台附带的MinGW)解决了问题。

最新更新