Hello Ben, Thanks for your answer. What is strange is that I did not change anything wrt include dirs or gcc or whatever... I am using --global because I noticed ghc-pkg list gives me two locations for regex-xxx packages. I removed everything from --user though. I will try to reinstall regex-xxx.
Thanks Arnaud On Sat, Oct 30, 2010 at 1:35 PM, Ben Millwood <hask...@benmachine.co.uk> wrote: > On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly <arnaud.oq...@gmail.com> > wrote: >> Hello, >> All of a sudden, the package regex-posix-0.94.2 failed to link after i >> installed a couple of other packages (http, json). When I try to >> reinstall it, I got the folowing errors: >> >> D:\projets\crete1941>cabal install --global --reinstall >> --enable-documentation regex-posix-0.94.2 >> Resolving dependencies... >> Configuring regex-posix-0.94.2... >> Preprocessing library regex-posix-0.94.2... >> Text\Regex\Posix\Wrap.hsc:107:19: regex.h: No such file or directory > > This is the crucial line in this particular build failure, everything > else is fluff. I really, really wish gcc would learn to stop compiling > after a header file was missing, since it almost always results in > large amounts of nonsense errors. > > It looks like cabal-install or possibly Cabal can't find your headers. > I notice you're compiling with an explicit --global option - why is > that? Is it currently installed locally or globally? You can use > 'ghc-pkg list regex-posix' to check. You can also enable global > installs and documentation by default by editing your config file, > whose location is given in the output of cabal --help. You can also > specify extra-include-dirs there if you need to do that. > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe