Resolving dependencies... Starting cabal-doctest-1.0.8 Starting tagged-0.8.6 Starting th-abstraction-0.3.2.0 Starting base-orphans-0.8.2 Building cabal-doctest-1.0.8 Building th-abstraction-0.3.2.0 Building base-orphans-0.8.2 Building tagged-0.8.6 Completed cabal-doctest-1.0.8 Starting transformers-compat-0.6.5 Completed tagged-0.8.6 Building transformers-compat-0.6.5 Completed base-orphans-0.8.2 Starting distributive-0.6.2 Completed th-abstraction-0.3.2.0 Completed transformers-compat-0.6.5 Building distributive-0.6.2 Completed distributive-0.6.2 Starting comonad-5.0.6 Building comonad-5.0.6 Completed comonad-5.0.6 Starting bifunctors-5.5.7 Building bifunctors-5.5.7 Completed bifunctors-5.5.7 Starting hw-kafka-client-3.1.1 Failed to install hw-kafka-client-3.1.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hw-kafka-client-3.1.1-DH3x848aQ5n6C7HOlSdPEn.log ): cabal: Entering directory '/tmp/cabal-tmp-18481/hw-kafka-client-3.1.1' Configuring hw-kafka-client-3.1.1... 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-18481/hw-kafka-client-3.1.1' cabal: Error: some packages failed to install: hw-kafka-client-3.1.1-DH3x848aQ5n6C7HOlSdPEn failed during the configure step. The exception was: ExitFailure 1