<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Hello Haskellers,</p>
<p style="margin:0px 0px 1.2em!important">Does anyone know what to do in this situation?</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">cabal install zlib
Resolving dependencies...
Notice: installing into a sandbox located at
/home/ubuntu/hw-files/.cabal-sandbox/7.10.3
Downloading zlib-0.6.1.1...
Configuring zlib-0.6.1.1...
Failed to install zlib-0.6.1.1
Build log ( /home/ubuntu/hw-files/.cabal-sandbox/7.10.3/logs/zlib-0.6.1.1.log ):
Configuring zlib-0.6.1.1...
setup-Simple-Cabal-1.22.5.0-x86_64-linux-ghc-7.10.3: Missing dependency on a
foreign library:
* Missing (or bad) header file: zlib.h
* Missing C library: z
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.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
cabal: Error: some packages failed to install:
zlib-0.6.1.1 failed during the configure step. The exception was:
ExitFailure 1
</code></pre><p style="margin:0px 0px 1.2em!important">This is what I have in my environment:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">ubuntu@box1179:~/hw-files$ dpkg -l | grep zlib
ii zlib1g 1:1.2.3.4.dfsg-3ubuntu4 compression library - runtime
ii zlib1g:i386 1:1.2.3.4.dfsg-3ubuntu4 compression library - runtime
iU zlib1g-dev 1:1.2.8.dfsg-1ubuntu1 compression library - development
</code></pre><p style="margin:0px 0px 1.2em!important">And this:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">ubuntu@box1179:~/hw-files$ nix-env -q
cabal-install-1.22.9.0
ghc-7.10.3
nix-1.11.2
zlib-1.2.8
</code></pre><p style="margin:0px 0px 1.2em!important">Cheers,</p>
<p style="margin:0px 0px 1.2em!important">-John</p>
<div title="MDH:SGVsbG8gSGFza2VsbGVycyw8ZGl2Pjxicj48L2Rpdj48ZGl2PkRvZXMgYW55b25lIGtub3cgd2hh
dCB0byBkbyBpbiB0aGlzIHNpdHVhdGlvbj88L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PmBgYDwv
ZGl2PjxkaXY+PGRpdj5jYWJhbCBpbnN0YWxsIHpsaWI8L2Rpdj48ZGl2PlJlc29sdmluZyBkZXBl
bmRlbmNpZXMuLi48L2Rpdj48ZGl2Pk5vdGljZTogaW5zdGFsbGluZyBpbnRvIGEgc2FuZGJveCBs
b2NhdGVkIGF0PC9kaXY+PGRpdj4vaG9tZS91YnVudHUvaHctZmlsZXMvLmNhYmFsLXNhbmRib3gv
Ny4xMC4zPC9kaXY+PGRpdj5Eb3dubG9hZGluZyB6bGliLTA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