Resolving dependencies... Warning: Note that reinstalls are always dangerous. Continuing anyway... Configuring colour-2.3.4... Configuring base-orphans-0.7... Building base-orphans-0.7... Building colour-2.3.4... Installed base-orphans-0.7 Configuring monads-tf-0.1.0.3... Building monads-tf-0.1.0.3... Installed monads-tf-0.1.0.3 Configuring primitive-0.6.4.0... Installed colour-2.3.4 Configuring semigroups-0.18.4... Building primitive-0.6.4.0... Building semigroups-0.18.4... Installed semigroups-0.18.4 Configuring options-1.2.1.1... Building options-1.2.1.1... Installed options-1.2.1.1 Configuring ansi-terminal-0.8.0.4... Building ansi-terminal-0.8.0.4... Installed ansi-terminal-0.8.0.4 Configuring charset-0.3.7.1... Building charset-0.3.7.1... Installed primitive-0.6.4.0 Configuring ansi-wl-pprint-0.6.8.2... Building ansi-wl-pprint-0.6.8.2... Installed ansi-wl-pprint-0.6.8.2 Configuring vector-0.12.0.1... Installed charset-0.3.7.1 Configuring scientific-0.3.6.2... Building vector-0.12.0.1... Building scientific-0.3.6.2... Installed scientific-0.3.6.2 Configuring attoparsec-0.13.2.2... Building attoparsec-0.13.2.2... Installed attoparsec-0.13.2.2 Configuring parsers-0.12.8... Building parsers-0.12.8... Installed parsers-0.12.8 Installed vector-0.12.0.1 Configuring inline-c-0.6.1.0... Building inline-c-0.6.1.0... Installed inline-c-0.6.1.0 Configuring c-mosquitto-0.1.5.0... Failed to install c-mosquitto-0.1.5.0 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/c-mosquitto-0.1.5.0-8vlZjwxYYilC43iDCO9vjy.log ): cabal: Entering directory '/tmp/cabal-tmp-6222/c-mosquitto-0.1.5.0' Configuring c-mosquitto-0.1.5.0... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: mosquitto 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-6222/c-mosquitto-0.1.5.0' cabal: Error: some packages failed to install: c-mosquitto-0.1.5.0-8vlZjwxYYilC43iDCO9vjy failed during the configure step. The exception was: ExitFailure 1