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 primitive-0.7.0.1 Starting hashable-1.3.0.0 Building hashable-1.3.0.0 Building primitive-0.7.0.1 Completed hashable-1.3.0.0 Starting text-short-0.1.3 Building text-short-0.1.3 Completed text-short-0.1.3 Completed primitive-0.7.0.1 Starting primitive-unlifted-0.1.3.0 Starting primitive-offset-0.2.0.0 Starting primitive-addr-0.1.0.2 Building primitive-offset-0.2.0.0 Building primitive-addr-0.1.0.2 Building primitive-unlifted-0.1.3.0 Completed primitive-offset-0.2.0.0 Completed primitive-addr-0.1.0.2 Completed primitive-unlifted-0.1.3.0 Starting run-st-0.1.1.0 Building run-st-0.1.1.0 Completed run-st-0.1.1.0 Starting byteslice-0.2.2.0 Building byteslice-0.2.2.0 Completed byteslice-0.2.2.0 Starting posix-api-0.3.4.0 Failed to install posix-api-0.3.4.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/posix-api-0.3.4.0-CBFFFQqLvq0FJmX6BkocAd.log ): cabal: Entering directory '/tmp/cabal-tmp-11551/posix-api-0.3.4.0' Configuring posix-api-0.3.4.0... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: systemd 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-11551/posix-api-0.3.4.0' cabal: Error: some packages failed to install: posix-api-0.3.4.0-CBFFFQqLvq0FJmX6BkocAd failed during the configure step. The exception was: ExitFailure 1