Attilah
Attilah

Reputation: 17930

Installing mysql on Yesod

I successfully created a Yesod app (using cabal-dev) and launching it. but I have been trying to use mysql with yesod, but I always keep getting the following error message after running the command " cabal-dev install yesod-platform, cabal-dev install yesod-bin; cabal-dev install " :

 Installed yesod-1.2.2.1
 cabal: Error: some packages failed to install:
 Youne-0.0.0 depends on pcre-light-0.4 which failed to install.
 mysql-0.1.1.5 failed during the configure step. The exception was:
 ExitFailure 1
 mysql-simple-0.2.2.4 depends on pcre-light-0.4 which failed to install.
 pcre-light-0.4 failed during the configure step. The exception was:
 ExitFailure 1
 persistent-mysql-1.2.1 depends on pcre-light-0.4 which failed to install.

I don't know what's going on.

Upvotes: 3

Views: 409

Answers (1)

Michael Snoyman
Michael Snoyman

Reputation: 31315

There was a problem installing pcre-light, most likely due to missing system libraries. Try running just cabal install pcre-light-0.4 and see if that output is more helpful.

Upvotes: 4

Related Questions