gpt4 book ai didi

Windows 7 上的 Haskell Yesod : Launching development server with 'yesod devel' issue

转载 作者:行者123 更新时间:2023-12-02 11:22:05 33 4
gpt4 key购买 nike

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

最佳答案

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

# 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

关于Windows 7 上的 Haskell Yesod : Launching development server with 'yesod devel' issue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13864581/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com