[Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link
haskell at benmachine.co.uk
Sat Oct 30 07:35:27 EDT 2010
On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly <arnaud.oqube at gmail.com> wrote:
> 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.
More information about the Haskell-Cafe