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.5 Starting integer-logarithms-1.0.3 Starting base-orphans-0.8.1 Starting hashable-1.3.0.0 Building colour-2.3.5 Building integer-logarithms-1.0.3 Building hashable-1.3.0.0 Building base-orphans-0.8.1 Completed base-orphans-0.8.1 Starting monads-tf-0.1.0.3 Completed integer-logarithms-1.0.3 Starting primitive-0.7.0.0 Building monads-tf-0.1.0.3 Building primitive-0.7.0.0 Completed hashable-1.3.0.0 Starting semigroups-0.19.1 Building semigroups-0.19.1 Completed monads-tf-0.1.0.3 Starting unordered-containers-0.2.10.0 Completed semigroups-0.19.1 Starting options-1.2.1.1 Building unordered-containers-0.2.10.0 Building options-1.2.1.1 Completed colour-2.3.5 Starting ansi-terminal-0.10.1 Building ansi-terminal-0.10.1 Completed options-1.2.1.1 Completed ansi-terminal-0.10.1 Starting ansi-wl-pprint-0.6.9 Building ansi-wl-pprint-0.6.9 Completed ansi-wl-pprint-0.6.9 Completed primitive-0.7.0.0 Starting scientific-0.3.6.2 Starting vector-0.12.0.3 Building scientific-0.3.6.2 Building vector-0.12.0.3 Completed unordered-containers-0.2.10.0 Starting charset-0.3.7.1 Building charset-0.3.7.1 Completed scientific-0.3.6.2 Starting attoparsec-0.13.2.3 Building attoparsec-0.13.2.3 Completed charset-0.3.7.1 Completed attoparsec-0.13.2.3 Starting parsers-0.12.10 Building parsers-0.12.10 Completed parsers-0.12.10 Completed vector-0.12.0.3 Starting inline-c-0.8.0.1 Building inline-c-0.8.0.1 Completed inline-c-0.8.0.1 Starting c-mosquitto-0.1.7.0 Failed to install c-mosquitto-0.1.7.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/c-mosquitto-0.1.7.0-8ZhRrhyhmkNHUDKZDjb8q6.log ): cabal: Entering directory '/tmp/cabal-tmp-25738/c-mosquitto-0.1.7.0' Configuring c-mosquitto-0.1.7.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-25738/c-mosquitto-0.1.7.0' cabal: Error: some packages failed to install: c-mosquitto-0.1.7.0-8ZhRrhyhmkNHUDKZDjb8q6 failed during the configure step. The exception was: ExitFailure 1