[Haskell-cafe] zlib, missing zlib.h
Don Stewart
dons at galois.com
Thu May 29 19:08:18 EDT 2008
You need to install the C zlib library.
Cabal is currently unable to warn about missing C library dependencies,
but they manifest as undeclared identifiers in .hsc files when that's
the case.
-- Don
tphyahoo:
> Tried to install
>
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib
>
> which is required for
>
> http://darcs.haskell.org/cabal-branches/cabal-1.4
>
> which is required for cabal-install.
>
> Got the following error. apt-get installed zlibc on a stab in the
> dark, but same result. advice?
>
> thartman at thartman-laptop:~/haskellInstalls/smallInstalls/cabal-install/zlib-0.4.0.4>runghc
> Setup.hs configure
> Configuring zlib-0.4.0.4...
>
> thartman at thartman-laptop:~/haskellInstalls/smallInstalls/cabal-install/zlib-0.4.0.4>runghc
> Setup.hs build &>out
>
> thartman at thartman-laptop:~/haskellInstalls/smallInstalls/cabal-install/zlib-0.4.0.4>head
> out
> Preprocessing library zlib-0.4.0.4...
>
> Stream.hsc:74:18: error: zlib.h: No such file or directory
> Stream.hsc: In function 'main':
>
> Stream.hsc:254:0:
> error: 'z_stream' undeclared (first use in this function)
>
> Stream.hsc:254:0:
> error: (Each undeclared identifier is reported only once
> thartman at thartman-laptop:~/haskellInstalls/smallInstalls/cabal-install/zlib-0.4.0.4>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list