Cabal Fails to Install MySQL Linux Driver
When trying to install mysql-simple on GHC 7.8.3 with cabal 1.18.1.3 on Ubuntu Linux 12.04, the mysql dependency failed with the following error:
mysql-0.1.1.6 failed during the configure step. The exception was:
ExitFailure 1
mysql-simple-0.2.2.4 depends on mysql-0.1.1.6 which failed to install.
A quick SO lead me to the solution. I needed to install the mysql-client library on linux:
sudo apt-get install libmysqlclient-dev
Enjoy! :)