[Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

Arnaud Bailly arnaud.oqube at gmail.com
Sat Oct 30 08:27:51 EDT 2010


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 <haskell at benmachine.co.uk> wrote:
> On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly <arnaud.oqube at 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.
>


More information about the Haskell-Cafe mailing list