Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting colour-2.3.4 Starting integer-logarithms-1.0.2.2 Starting base-orphans-0.8 Starting hashable-1.2.7.0 Building colour-2.3.4 Building base-orphans-0.8 Building integer-logarithms-1.0.2.2 Building hashable-1.2.7.0 Completed base-orphans-0.8 Starting monads-tf-0.1.0.3 Completed integer-logarithms-1.0.2.2 Starting primitive-0.6.4.0 Building monads-tf-0.1.0.3 Building primitive-0.6.4.0 Completed hashable-1.2.7.0 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting unordered-containers-0.2.9.0 Completed monads-tf-0.1.0.3 Starting options-1.2.1.1 Building unordered-containers-0.2.9.0 Building options-1.2.1.1 Completed colour-2.3.4 Starting ansi-terminal-0.8.2 Building ansi-terminal-0.8.2 Completed ansi-terminal-0.8.2 Starting ansi-wl-pprint-0.6.8.2 Completed options-1.2.1.1 Building ansi-wl-pprint-0.6.8.2 Completed ansi-wl-pprint-0.6.8.2 Completed unordered-containers-0.2.9.0 Starting charset-0.3.7.1 Building charset-0.3.7.1 Completed primitive-0.6.4.0 Starting scientific-0.3.6.2 Starting vector-0.12.0.2 Building scientific-0.3.6.2 Building vector-0.12.0.2 Completed charset-0.3.7.1 Completed scientific-0.3.6.2 Starting attoparsec-0.13.2.2 Building attoparsec-0.13.2.2 Completed attoparsec-0.13.2.2 Starting parsers-0.12.9 Building parsers-0.12.9 Completed parsers-0.12.9 Completed vector-0.12.0.2 Starting inline-c-0.7.0.1 Building inline-c-0.7.0.1 Completed inline-c-0.7.0.1 Starting c-mosquitto-0.1.6.0 Failed to install c-mosquitto-0.1.6.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/c-mosquitto-0.1.6.0-1PZmETEAa8XkWqzCBYBi3.log ): cabal: Entering directory '/tmp/cabal-tmp-32694/c-mosquitto-0.1.6.0' Configuring c-mosquitto-0.1.6.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-32694/c-mosquitto-0.1.6.0' cabal: Error: some packages failed to install: c-mosquitto-0.1.6.0-1PZmETEAa8XkWqzCBYBi3 failed during the configure step. The exception was: ExitFailure 1