Resolving dependencies... Configuring cabal-doctest-1.0.6... Configuring base-orphans-0.7... Building cabal-doctest-1.0.6... Building base-orphans-0.7... Installed base-orphans-0.7 Configuring semigroups-0.18.4... Installed cabal-doctest-1.0.6 Configuring th-abstraction-0.2.6.0... Building semigroups-0.18.4... Building th-abstraction-0.2.6.0... Installed semigroups-0.18.4 Configuring transformers-compat-0.6.1.5... Building transformers-compat-0.6.1.5... Installed th-abstraction-0.2.6.0 Installed transformers-compat-0.6.1.5 Configuring contravariant-1.4.1... Configuring tagged-0.8.5... Building tagged-0.8.5... Building contravariant-1.4.1... Installed tagged-0.8.5 Configuring distributive-0.5.3... Installed contravariant-1.4.1 Building distributive-0.5.3... Installed distributive-0.5.3 Configuring comonad-5.0.3... Building comonad-5.0.3... Installed comonad-5.0.3 Configuring bifunctors-5.5.2... Building bifunctors-5.5.2... Installed bifunctors-5.5.2 Configuring hw-kafka-client-2.5.0... Failed to install hw-kafka-client-2.5.0 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/hw-kafka-client-2.5.0-KLoT7upg3sfDYvTZ8xJKw1.log ): cabal: Entering directory '/tmp/cabal-tmp-28508/hw-kafka-client-2.5.0' Configuring hw-kafka-client-2.5.0... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: rdkafka 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 library 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-28508/hw-kafka-client-2.5.0' cabal: Error: some packages failed to install: hw-kafka-client-2.5.0-KLoT7upg3sfDYvTZ8xJKw1 failed during the configure step. The exception was: ExitFailure 1