Yesod安装失败.. Haskell-GHC-Options" -fdiagnostics-color =始终
我正在尝试从
在第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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论