【问题标题】:Haskell Yesod on Windows 7: Launching development server with 'yesod devel' issueWindows 7 上的 Haskell Yesod:启动开发服务器时出现“yesod devel”问题
【发布时间】:2012-12-14 01:53:53
【问题描述】:

我是 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,这似乎执行得很好,尽管我觉得由于我的经验不足而遗漏了一些东西,任何方向都将不胜感激。我找不到任何相关的问题,但这很可能是因为我不知道我需要知道什么:)

【问题讨论】:

  • 在您的项目目录中尝试cabal install --only-dependencies。编辑:哦,在你这样做之前运行cabal install happy alexhjsmin 至少需要alex,不确定快乐但不会受伤。然后在运行第一个命令之前确保它们在你的路径上。
  • 干杯!像魅力一样工作:D

标签: haskell yesod


【解决方案1】:

您的项目的依赖项似乎没有安装。在您的项目目录中运行以下命令:

# 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-dependencies

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-06
    • 2015-02-13
    • 2013-11-14
    • 2018-04-27
    • 2012-12-11
    • 1970-01-01
    • 2011-11-21
    • 2023-03-07
    相关资源
    最近更新 更多