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 auto-update-0.1.6 Starting base16-bytestring-0.1.1.6 Starting base-orphans-0.8.1 Starting base-compat-0.11.0 Building auto-update-0.1.6 Building base16-bytestring-0.1.1.6 Building base-orphans-0.8.1 Building base-compat-0.11.0 Completed base-orphans-0.8.1 Starting base64-bytestring-1.0.0.2 Completed base16-bytestring-0.1.1.6 Starting blaze-builder-0.4.1.0 Completed auto-update-0.1.6 Starting data-default-class-0.1.2.0 Building base64-bytestring-1.0.0.2 Building blaze-builder-0.4.1.0 Building data-default-class-0.1.2.0 Completed data-default-class-0.1.2.0 Starting dlist-0.8.0.7 Completed base64-bytestring-1.0.0.2 Starting easy-file-0.2.2 Building dlist-0.8.0.7 Building easy-file-0.2.2 Completed blaze-builder-0.4.1.0 Starting exceptions-0.10.4 Building exceptions-0.10.4 Completed dlist-0.8.0.7 Starting hashable-1.3.0.0 Completed easy-file-0.2.2 Starting integer-logarithms-1.0.3 Completed base-compat-0.11.0 Building hashable-1.3.0.0 Starting monad-loops-0.4.3 Building integer-logarithms-1.0.3 Building monad-loops-0.4.3 Completed integer-logarithms-1.0.3 Starting mysql-0.1.7 Completed monad-loops-0.4.3 Starting network-3.1.1.1 Completed exceptions-0.10.4 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed hashable-1.3.0.0 Starting path-pieces-0.2.1 Building path-pieces-0.2.1 Completed old-locale-1.0.0.7 Starting pcre-light-0.4.1.0 Failed to install mysql-0.1.7 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/mysql-0.1.7-2akJKk9UoN98FN0HKbIl2c.log ): cabal: Entering directory '/tmp/cabal-tmp-27921/mysql-0.1.7' [1 of 1] Compiling Main ( /tmp/cabal-tmp-27921/mysql-0.1.7/dist/setup/setup.hs, /tmp/cabal-tmp-27921/mysql-0.1.7/dist/setup/Main.o ) Linking /tmp/cabal-tmp-27921/mysql-0.1.7/dist/setup/setup ... Configuring mysql-0.1.7... setup: The program 'mysql_config' is required but it could not be found cabal: Leaving directory '/tmp/cabal-tmp-27921/mysql-0.1.7' Starting primitive-0.7.0.0 Building pcre-light-0.4.1.0 Building primitive-0.7.0.0 Completed path-pieces-0.2.1 Building network-3.1.1.1 Completed pcre-light-0.4.1.0 Completed network-3.1.1.1 Completed primitive-0.7.0.0 cabal: Error: some packages failed to install: mysql-0.1.7-2akJKk9UoN98FN0HKbIl2c failed during the configure step. The exception was: ExitFailure 1 mysql-simple-0.4.5-5eQHm1TAFMB2L1vCe7jHyX depends on mysql-simple-0.4.5 which failed to install. persistent-mysql-2.10.2.1-6dgGuXVZKNUHV0dDplIE1Z depends on persistent-mysql-2.10.2.1 which failed to install.