Ticket #552 (closed enhancement: duplicate)
Cabal fails because header file is missing. But in fact the header file is erroneous.
| Reported by: | mgross | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Cabal-1.8 |
| Component: | Cabal library | Version: | 1.6.0.2 |
| Severity: | normal | Keywords: | |
| Cc: | Difficulty: | normal | |
| GHC Version: | Platform: |
Description
When trying to install HERA 0.2 the
runhaskell Setup.hs configure
command fails with:
Setup.hs: Missing dependency on a foreign library: * Missing header file: hsmpfr.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.
But in fact the header file is present. The real problem is an include in the header file.
The include
#include <malloc.h>
fails on Mac OS systems.
It would be better if Cabal would report the compile error.
Change History
Note: See
TracTickets for help on using
tickets.
