Resolving dependencies... Configuring base-orphans-0.6... Configuring base-compat-0.9.3... Building base-orphans-0.6... Building base-compat-0.9.3... Installed base-orphans-0.6 Configuring cabal-doctest-1.0.6... Building cabal-doctest-1.0.6... Installed base-compat-0.9.3 Configuring safe-0.3.16... Building safe-0.3.16... Installed cabal-doctest-1.0.6 Configuring semigroups-0.18.4... Building semigroups-0.18.4... Installed semigroups-0.18.4 Configuring th-abstraction-0.2.6.0... Installed safe-0.3.16 Configuring th-expand-syns-0.4.4.0... Building th-abstraction-0.2.6.0... Building th-expand-syns-0.4.4.0... Installed th-expand-syns-0.4.4.0 Configuring th-lift-0.7.8... Building th-lift-0.7.8... Installed th-abstraction-0.2.6.0 Configuring transformers-compat-0.5.1.4... Building transformers-compat-0.5.1.4... Installed th-lift-0.7.8 Configuring universe-base-1.0.2.1... Installed transformers-compat-0.5.1.4 Configuring z3-4.1.2... Building universe-base-1.0.2.1... Failed to install z3-4.1.2 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/z3-4.1.2-9oEXT8FoTuNEUNWUB8Z87w.log ): cabal: Entering directory '/tmp/cabal-tmp-28025/z3-4.1.2' Configuring z3-4.1.2... cabal: Missing dependency on a foreign library: * Missing (or bad) header file: z3.h * Missing C library: z3 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: Leaving directory '/tmp/cabal-tmp-28025/z3-4.1.2' Configuring th-reify-many-0.1.8... Building th-reify-many-0.1.8... Installed universe-base-1.0.2.1 Installed th-reify-many-0.1.8 cabal: Error: some packages failed to install: expressions-z3-0.1.2-LXJbs0glpMG94v8c5QNUoa depends on expressions-z3-0.1.2 which failed to install. z3-4.1.2-9oEXT8FoTuNEUNWUB8Z87w failed during the configure step. The exception was: ExitFailure 1