<div dir="ltr"><div>Hi, you need to install these deps. manually. This might be of help:<br><br><a href="https://github.com/23Skidoo/haskell-platform-windows">https://github.com/23Skidoo/haskell-platform-windows</a><br><br>
</div><div>It's also good to use MinGW and MSYS. MinGW comes with the platform. MSYS currently doesn't but it should too. You can install them yourself, if you don't have the platform.<br><br></div><div>Regarding third-party libraries, I only have experience with `glpk-hs` package which is a wrapper around the GLPK solver. It took me a lot of time to get this to work but in general, try to get a binary build for windows (for GLPK, there's a Winglpk on sourceforge) and then you use `--extra-include-dirs=` and `--extra-lib-dirs=` so specify the locations of the library files. <br>
<br>In my case, I use a Makefile for this, which accepts a $(glpk) argument with the install location of Winglpk. <br><br>```<br>GPLK_LIBS_INCLUDES := --extra-include-dirs=$(glpk)/src --extra-include-dirs=$(glpk)/src/amd --extra-include-dirs=$(glpk)/src/colamd --extra-include-dirs=$(glpk)/src/minisat --extra-include-dirs=$(glpk)/src/zlib --extra-lib-dirs=$(glpk)/w32<br>
```<br></div><div><br></div><div>Then I call cabal like this<br><br>`cabal install --only-dependencies $(GPLK_LIBS_INCLUDES)`<br></div><div><br></div><div>Finally, (just in case...), with MSYS you give paths on windows like this, for example, `/c/lib/glpk-4.51`.<br>
</div><div><br></div><div>Hope that helps,<br></div>Michal<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 5:18 PM, Cédric Chantepie <span dir="ltr"><<a href="mailto:chantepie@altern.org" target="_blank">chantepie@altern.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Try to setup GHC 7.8.2 & cabal 1.8 on Windows (7/64bits), using binary distributions from <a href="http://haskell.org" target="_blank">haskell.org</a> I get error when I try to install glib package using cabal :<br>
<br>
cabal: Missing dependency on a foreign library:<br>
* Missing (or bad) header file: primitive-memops.h<br>
This problem can usually be solved by installing the system package that<br>
provides this library (you may need the "-dev" version). If the library is<br>
already installed but in a non-standard location then you can use the flags<br>
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.<br>
If the header file does exist, it may contain errors that are caught by the C<br>
compiler at the preprocessing stage. In this case you can re-run configure<br>
with the verbosity flag -v3 to see the error messages.<br>
Failed to install primitive-0.5.2.1<br>
cabal: Error: some packages failed to install:<br>
<br>
Command cabal install primitive raise the same error.<br>
<br>
I have tried either within cygwin or from plain cmd.<br>
<br>
Thanks for any hint, best.<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all">
</div></div>