我是Haskell的新手,目前使用的是Windows 7操作系统。
我正在尝试使用Haskell框架Yesod开发web服务。当我执行yesod devel命令来启动开发服务器时,我得到以下错误:
C:\Users\Sticky\workspace\Yesod\testYesod>yesod devel
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring testYesod-0.0.0...
cabal: At least the following dependencies are missing:
data-default -any,
hamlet ==1.1.*,
hjsmin ==0.1.*,
http-conduit >=1.5 && <1.7,
monad-control ==0.3.*,
persistent ==1.0.*,
persistent-sqlite ==1.0.*,
shakespeare-css ==1.0.*,
shakespeare-js ==1.0.*,
shakespeare-text ==1.0.*,
wai-extra ==1.3.*,
warp ==1.3.*,
yaml ==0.8.*,
yesod ==1.1.*,
yesod-auth ==1.1.*,
yesod-core >=1.1.2 && <1.2,
yesod-default ==1.1.*,
yesod-form ==1.1.*,
yesod-static ==1.1.*,
yesod-test ==0.3.*
Rebuilding application...
Forcing recompile for .\Model.hs because of config/models
Forcing recompile for .\Foundation.hs because of config/routes
Forcing recompile for .\Foundation.hs because of messages/en.msg
Forcing recompile for .\Foundation.hs because of templates/default-layout-wrappe
r.hamlet
Forcing recompile for .\Foundation.hs because of templates/default-layout.hamlet
Forcing recompile for .\Handler\Home.hs because of templates/homepage.hamlet
cabal: Run the 'configure' command fBuild failure, pausing...
irst.我已经尝试过运行cabal configure,这似乎执行得很好,尽管我觉得我由于缺乏经验而遗漏了一些东西,但任何方向都会非常感谢。我没有找到任何相关的问题,但这很可能是因为我不确切地知道我需要知道的:)
发布于 2012-12-14 01:53:54
看起来您的项目的依赖项未安装。在项目目录中运行以下命令:
# alex at least, possibly also happy, are required by hjsmin
cabal install happy alex
# Make sure alex is on your path, then
cabal install --only-dependencieshttps://stackoverflow.com/questions/13864581
复制相似问题