Skip to content

cabal-install broken at Ubuntu 20.04.3 LTS #7927

@andreas-roehler

Description

@andreas-roehler

Command cabal install cabal-install failed saying:

...
Building th-compat-0.1.3
Failed to install zlib-0.6.2.3 Build log
( /root/.cabal/logs/ghc-8.6.5/zlib-0.6.2.3-93Wbo8gIIzI9bg4p2MsNUF.log
): cabal: Entering directory '/tmp/cabal-tmp-9836/zlib-0.6.2.3'
Configuring zlib-0.6.2.3... cabal: Missing dependency on a foreign
library: * Missing (or bad) header file: zlib.h * Missing (or bad) C
library: z This problem can usually be solved by installing the system
package that
...
cabal: Leaving directory
'/tmp/cabal-tmp-9836/zlib-0.6.2.3' Downloading resolv-0.1.2.0 ...
Completed Cabal-3.6.2.0 cabal: Error: some packages failed to install:
cabal-install-3.6.2.0-5Y0kIBgGBHPLTQ8XdkgDxf depends on
cabal-install-3.6.2.0 which failed to install.
hackage-security-0.6.2.0-B0TjxsjMq5dADGx7XAtxpG depends on
hackage-security-0.6.2.0 which failed to install.
zlib-0.6.2.3-93Wbo8gIIzI9bg4p2MsNUF failed during the configure step.
The exception was: ExitFailure 1

But the claimed missing zlib.h resides at /usr/include/zlib.h

See also
https://stackoverflow.com/questions/66615901/cabal-install-cabal-cabal-install-fails-due-to-missing-zlib-library

Suggested workaround there installing "libghc-zlib-dev" seems successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions