I'm having a problem similar to the one listed here: Trying to install Image.Codec.DevIL under windows. Needs pthread and IL. Can't get IL to work But I don't seem to be able resolve it following the small pieces of advice in the comments.
I'm running the Haskell Platform on Windows 7, and am attempt to install and use the friday
package https://hackage.haskell.org/package/friday
I can successfully run cabal install package friday
but when attempting to run cabal install package friday-devil
, the package installation fails with the following errors:
Resolving dependencies...
Configuring friday-devil-0.1.1.1...
Failed to install friday-devil-0.1.1.1 Last 10 lines of the build log ( C:\Users\Chris\AppData\Roaming\cabal\logs\friday-devil-0.1.1.1.log):
Configuring friday-devil-0.1.1.1...
setup-Cabal-1.18.1.3-x86_64-windows-ghc-7.8.3.exe: Missing dependency on a foreign library:
* Missing C library: IL
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:
friday-devil-0.1.1.1 failed during the configure step. The exception was:
ExitFailure 1
I've installed the libraries found at http://openil.sourceforge.net/, I've also tried manually specifying the location of the libs included in DevIL with the --extra-include-dirs=
and --extra-lib-dirs=
options suggested above.
I've also attempted to run using MSYS2 shell and via cygwin (running out of ideas at that point).
I thought that maybe the other answer was on to something regarding pthreads, but I've just attempted to install that and reference it, and nothing seemed to change.
I'm unsure what else to try at this point, any thoughts greatly appreciated.
Edit: I get exactly the same issue in Ubuntu 14, there must be a step I'm missing/not understanding somewhere.
Further Edit: I've managed to get over this hump in Ubuntu by running sudo apt-get install libdevil-dev
as suggested in this answer: g++ with DevIL: unable to link
Also tried everything listed on this page: https://github.com/RaphaelJ/friday-devil/wiki/Windows and the error persists.
I guess I need to figure out what the equivalent is in Windows?