Yesod安装失败.. Haskell-GHC-Options" -fdiagnostics-color =始终

发布于 2025-02-07 17:08:46 字数 1069 浏览 0 评论 0原文

我正在尝试从

在第3步上,stack安装yesod-bin - 安装ghc

我收到一个错误,如下所示,

stack install yesod-bin --install-ghc                
Linking /Users/air/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 ...
yesod-bin> configure
yesod-bin> Configuring yesod-bin-1.6.0.6...
yesod-bin> build
yesod-bin> Preprocessing executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> Building executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> [1 of 7] Compiling AddHandler
yesod-bin> [2 of 7] Compiling Devel
yesod-bin> <command line>: can't load framework: Cocoa (not found)

--  While building package yesod-bin-1.6.0.6 (scroll up to its section to see the error) using:
      /Users/air/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

我只安装了命令行工具,而不是xcode。使用Macos Monterey。

请指导在这里需要做什么以使安装正确?

I am trying out yesod tutorial from

https://www.yesodweb.com/page/quickstart

On step no 3 stack install yesod-bin --install-ghc

I get an error as shown below

stack install yesod-bin --install-ghc                
Linking /Users/air/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 ...
yesod-bin> configure
yesod-bin> Configuring yesod-bin-1.6.0.6...
yesod-bin> build
yesod-bin> Preprocessing executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> Building executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> [1 of 7] Compiling AddHandler
yesod-bin> [2 of 7] Compiling Devel
yesod-bin> <command line>: can't load framework: Cocoa (not found)

--  While building package yesod-bin-1.6.0.6 (scroll up to its section to see the error) using:
      /Users/air/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

I only have command line tools installed and not Xcode. Using macOS Monterey.

Please guide as to what needs to be done here to get the installation right ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文