[Haskell-cafe] unix-compat and GHC 7.0.2

Paulo Tanimoto ptanimoto at gmail.com
Tue Mar 15 19:41:48 CET 2011


On Tue, Mar 15, 2011 at 1:34 PM, Pieter Laeremans <pieter at laeremans.org> wrote:
> I've got the same problem.
> I don't have acces to the computer where I've go the  problem (my home mac).
> But if I remember correctly
> cabal install unix-compat -V3  yielded more output, the problem
> was due to lbutil.h, that was not present. I've experienced the same problem
> on an EC2, with  a redhat fedora, by amazon.
> On ubuntu I got it working by installing libbsd-dev or something like that.
> kind regards,
> Pieter
> PS : funny thing is, I've stumbled upon the problem when trying to install
> yesod ;-).
>
> On Tue, Mar 15, 2011 at 7:13 PM, Michael Snoyman <michael at snoyman.com>
> wrote:
>>
>> Hi all,
>>
>> I'm having trouble compiling unix-compat with GHC 7.0.2. I'm fairly
>> certain that other users are not running into this, but I'm not sure
>> what would be wrong on my system. Here's the error I'm getting:
>>
>> Resolving dependencies...
>> Configuring unix-compat-0.2.1.1...
>> cabal: Missing dependency on a foreign library:
>> * Missing header file: HsUnixCompat.h
>> 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:
>> unix-compat-0.2.1.1 failed during the configure step. The exception was:
>> ExitFailure 1
>>
>> Any ideas?
>>
>> Thanks,
>> Michael
>>
>>

I had the same problem and used the same solution.  On Ubuntu, install
'libbsd-dev'.  This was the ticket opened by Bas:

http://hackage.haskell.org/trac/ghc/ticket/4974

Perhaps we should add a note about this in the GHC download page?

Paulo



More information about the Haskell-Cafe mailing list