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.2 Starting base-compat-0.11.1 Building base16-bytestring-0.1.1.6 Building auto-update-0.1.6 Building base-orphans-0.8.2 Building base-compat-0.11.1 Completed base16-bytestring-0.1.1.6 Starting base64-bytestring-1.0.0.3 Completed auto-update-0.1.6 Starting blaze-builder-0.4.1.0 Building base64-bytestring-1.0.0.3 Building blaze-builder-0.4.1.0 Completed base-orphans-0.8.2 Starting data-default-class-0.1.2.0 Completed base64-bytestring-1.0.0.3 Starting dlist-0.8.0.7 Building data-default-class-0.1.2.0 Building dlist-0.8.0.7 Completed blaze-builder-0.4.1.0 Starting easy-file-0.2.2 Completed data-default-class-0.1.2.0 Starting exceptions-0.10.4 Building easy-file-0.2.2 Building exceptions-0.10.4 Completed base-compat-0.11.1 Starting hashable-1.3.0.0 Completed dlist-0.8.0.7 Starting integer-logarithms-1.0.3 Building hashable-1.3.0.0 Building integer-logarithms-1.0.3 Completed easy-file-0.2.2 Starting monad-loops-0.4.3 Building monad-loops-0.4.3 Completed integer-logarithms-1.0.3 Starting mysql-0.1.7 Completed exceptions-0.10.4 Starting network-3.1.1.1 Completed monad-loops-0.4.3 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 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-16511/mysql-0.1.7' [1 of 1] Compiling Main ( /tmp/cabal-tmp-16511/mysql-0.1.7/dist/setup/setup.hs, /tmp/cabal-tmp-16511/mysql-0.1.7/dist/setup/Main.o ) Linking /tmp/cabal-tmp-16511/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-16511/mysql-0.1.7' Starting pcre-light-0.4.1.0 Completed old-locale-1.0.0.7 Building pcre-light-0.4.1.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 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-IU5ChuAW10f73OjJ1k1329 depends on mysql-simple-0.4.5 which failed to install. persistent-mysql-2.10.2.3-IsycIq4yCSt6K10kNm1HRW depends on persistent-mysql-2.10.2.3 which failed to install.