-
Notifications
You must be signed in to change notification settings - Fork 722
Description
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
Suggested workaround there installing "libghc-zlib-dev" seems successful.