2013-10-30 106 views
3

我成功創建了一個Yesod應用程序(使用cabal-dev)並啓動它。 但我一直在嘗試與yesod一起使用mysql,但運行命令「cabal-dev install yesod-platform,cabal-dev install yesod-bin; cabal-dev install」後,我總是收到以下錯誤消息:在Yesod上安裝mysql

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

安裝pcre-light時出現問題,很可能是由於缺少系統庫。嘗試運行cabal install pcre-light-0.4並查看該輸出是否更有幫助。

+0

謝謝邁克爾,運行該命令指出我的系統中丟失了PCRE庫。很棒,現在我可以繼續使用Yesod。順便說一下精彩的一款軟件。 – Attilah

+0

我有類似的問題,'pcre-light'由於缺少OS(OS X 10.9)PCRE可執行文件而無法安裝。解決方案是通過'brew install pcre'安裝__PCRE__ –