[Haskell-cafe] zlib, missing zlib.h

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu May 29 19:39:12 EDT 2008

On Fri, 2008-05-30 at 01:10 +0200, Marc Weber wrote:
> On Thu, May 29, 2008 at 03:51:56PM -0700, Thomas Hartman wrote:
> echo      "  extra-lib-dirs: ${zlib}/lib" >> zlib.cabal
> echo      "  include-dirs: ${zlib}/include" >> zlib.cabal'';
> Try patching the cabal file using something like that.

Actually the .cabal file is fine, the machine is probably just missing
zlib.h which is in zlib-devel on debian based systems.

As don says, Cabal does not currently check that all required .h files
and C libs are available at configure time so you bump into them as
compile or linker errors. Obviously it should check for these things at
configure time and produce more helpful explanations. If anyone wants to
implement that for us that'd be a great service. The ticket is here:


More information about the Haskell-Cafe mailing list