3

我成功地创建了一个 Yesod 应用程序(使用 cabal-dev)并启动它。但是我一直在尝试将mysql与yesod一起使用,但是在运行命令“ 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.

我不知道发生了什么事。

4

1 回答 1

4

安装 pcre-light 时出现问题,很可能是由于缺少系统库。尝试运行cabal install pcre-light-0.4并查看该输出是否更有帮助。

于 2013-10-30T13:04:48.883 回答