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 base16-bytestring-0.1.1.6 Starting auto-update-0.1.6 Starting base-orphans-0.8.1 Starting base-compat-0.10.5 Building base16-bytestring-0.1.1.6 Building auto-update-0.1.6 Building base-orphans-0.8.1 Building base-compat-0.10.5 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 cabal-doctest-1.0.6 Building base64-bytestring-1.0.0.2 Building blaze-builder-0.4.1.0 Building cabal-doctest-1.0.6 Completed base64-bytestring-1.0.0.2 Starting data-default-class-0.1.2.0 Building data-default-class-0.1.2.0 Completed cabal-doctest-1.0.6 Starting dlist-0.8.0.7 Completed blaze-builder-0.4.1.0 Starting easy-file-0.2.2 Building dlist-0.8.0.7 Building easy-file-0.2.2 Completed base-compat-0.10.5 Starting hashable-1.3.0.0 Completed data-default-class-0.1.2.0 Starting integer-logarithms-1.0.3 Building hashable-1.3.0.0 Building integer-logarithms-1.0.3 Completed dlist-0.8.0.7 Starting monad-loops-0.4.3 Completed easy-file-0.2.2 Starting mysql-0.1.7 Building monad-loops-0.4.3 Completed integer-logarithms-1.0.3 Starting network-3.1.0.1 Completed hashable-1.3.0.0 Starting old-locale-1.0.0.7 Completed monad-loops-0.4.3 Starting path-pieces-0.2.1 Building old-locale-1.0.0.7 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-12567/mysql-0.1.7' [1 of 1] Compiling Main ( /tmp/cabal-tmp-12567/mysql-0.1.7/dist/setup/setup.hs, /tmp/cabal-tmp-12567/mysql-0.1.7/dist/setup/Main.o ) Linking /tmp/cabal-tmp-12567/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-12567/mysql-0.1.7' Starting pcre-light-0.4.0.4 Building path-pieces-0.2.1 Building pcre-light-0.4.0.4 Building network-3.1.0.1 Completed old-locale-1.0.0.7 Completed path-pieces-0.2.1 Completed pcre-light-0.4.0.4 Completed network-3.1.0.1 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-CW885KCRNSpAa7rDqdPCvq depends on mysql-simple-0.4.5 which failed to install. persistent-mysql-2.10.1-9J4tSj9OhgpKU5JLO7FFxT depends on persistent-mysql-2.10.1 which failed to install.