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 StateVar-1.2 Starting base-orphans-0.8.1 Starting SHA-1.6.4.4 Starting base-compat-0.10.5 Building StateVar-1.2 Building base-orphans-0.8.1 Building SHA-1.6.4.4 Building base-compat-0.10.5 Completed base-orphans-0.8.1 Starting base64-bytestring-1.0.0.2 Completed StateVar-1.2 Starting basement-0.0.11 Building base64-bytestring-1.0.0.2 Building basement-0.0.11 Completed base64-bytestring-1.0.0.2 Starting blaze-builder-0.4.1.0 Building blaze-builder-0.4.1.0 Completed base-compat-0.10.5 Starting byteable-0.1.1 Building byteable-0.1.1 Completed SHA-1.6.4.4 Starting cabal-doctest-1.0.8 Completed byteable-0.1.1 Starting call-stack-0.2.0 Completed blaze-builder-0.4.1.0 Starting cereal-0.5.8.1 Building cabal-doctest-1.0.8 Building call-stack-0.2.0 Building cereal-0.5.8.1 Completed call-stack-0.2.0 Starting data-default-class-0.1.2.0 Building data-default-class-0.1.2.0 Completed cabal-doctest-1.0.8 Starting digest-0.0.1.2 Building digest-0.0.1.2 Completed data-default-class-0.1.2.0 Starting dlist-0.8.0.7 Building dlist-0.8.0.7 Completed digest-0.0.1.2 Starting extensible-exceptions-0.1.1.4 Building extensible-exceptions-0.1.1.4 Completed extensible-exceptions-0.1.1.4 Starting filelock-0.1.1.4 Completed dlist-0.8.0.7 Starting gd-3000.7.3 Building filelock-0.1.1.4 Completed cereal-0.5.8.1 Starting harp-0.4.3.3 Failed to install gd-3000.7.3 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/gd-3000.7.3-APCH4Ju1A4ZBRkJqgSs3lQ.log ): cabal: Entering directory '/tmp/cabal-tmp-8382/gd-3000.7.3' Configuring gd-3000.7.3... cabal: Missing dependencies on foreign libraries: * Missing (or bad) header file: gd.h * Missing (or bad) C libraries: gd, jpeg This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.If the library files do 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. If the header 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-8382/gd-3000.7.3' Starting hashable-1.3.0.0 Building harp-0.4.3.3 Building hashable-1.3.0.0 Completed filelock-0.1.1.4 Completed harp-0.4.3.3 Completed hashable-1.3.0.0 Completed basement-0.0.11 cabal: Error: some packages failed to install: clckwrks-plugin-media-0.6.16.8-2eSsPNLYJb9Ke7K33pseM4 depends on clckwrks-plugin-media-0.6.16.8 which failed to install. gd-3000.7.3-APCH4Ju1A4ZBRkJqgSs3lQ failed during the configure step. The exception was: ExitFailure 1