eclipsehaskelleclipse-fp

Installation errors when installing executables for EclipseFP


I installed the EclipseFP 2.6.4 plugin under Eclipse Luna, then restarted. When it started to attempt to install the executables for the first time, nothing was installed successfully. I went through all of the log files that were generated and found two that contained errors: ansi-terminal-0.6.2.1 and unix-compat-0.4.1.4.

The log for 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.

The log for 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.

I installed the Haskell Platform 2014.2.0.0 for Windows 64-bit. It is on my path. I read someplace about MinGW being necessary, and MinGW and MSYS are both installed and up-to-date as well and the bin and lib folders for them are on my path. I checked the locations on my path and found a libmsvctr.a and libkernel32.a in C:\MinGW\mingw32\lib (which is on my path).

I think I'm missing something, but I'm not seeing anything in the FAQ or on the support forum.


Solution

  • I'm not exactly sure why this works. I'm guessing it has to do with dependencies (perhaps down to a version), but the issue was in my PATH environment variables. Haskell Platform comes with MinGW. When I moved Haskell Platform's directories above my MinGW directories in my PATH environment variable, things started to work.

    My MinGW is fully installed and up-to-date (at least as far as I can tell), so it may be the Haskell Platform has a dependency that's not a standard part of MinGW or has a dependency on specific versions of tools. Either way, moving the Haskell Platform directories (including the MinGW that comes with Haskell Platform) up first in my PATH variables resolved the issues.