Cabal Fails to Install PCRE-Light on Linux
When trying to install mysql-simple on GHC 7.8.3 with cabal 1.18.1.3 on Ubuntu Linux 12.04, the pcre-light dependency failed with the following error:
mysql-simple-0.2.2.4 depends on pcre-light-0.4.0.3 which failed to install.
pcre-light-0.4.0.3 failed during the configure step. The exception was:
ExitFailure 1
Thankfully since I had come across the same problem before on my Mac, the solution was an easy one.
Install the pcre-light package on linux with:
sudo apt-get install libpcre3 libpcre3-dev
Enjoy! :)