gpt4 book ai didi

haskell - 堆栈安装 : Setup. hs:不存在

转载 作者:行者123 更新时间:2023-12-02 18:48:38 25 4
gpt4 key购买 nike

我将 stack.exe v0.1.2.2 放入我的 PATH 目录之一,然后通过 stack setup 安装 ghc-7.8.4。

我尝试安装 ghc-mod 并获得奇怪的错误 Setup.hs: 不存在:

stack install ghc-modUsing resolver: lts-2.21 from global config file: C:\Users\martynov_p\AppData\Roaming\stack\global\stack.yamlghc-paths-0.1.0.9: configuredata-default-class-0.0.1: configuredlist-0.7.1.1: configureansi-terminal-0.6.2.1: configurehscolour-1.22: configureextra-1.1: configuremtl-2.1.3.1: configurecmdargs-0.10.13: configureProgress: 8/54--  While building package cmdargs-0.10.13 using:      C:\\Users\\martynov_p\\appdata\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.8.4\\bin\\runhaskell.exe -package=Cabal-1.18.1.5 -clear-package-db -global-package-db -package-db=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\pkgdb\ C:\Users\MARTYN~1\AppData\Local\Temp\stack12088\Setup.hs --builddir=.stack-work\dist\x86_64-windows\Cabal-1.18.1.5\ configure --user --package-db=clear --package-db=global --package-db=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\pkgdb\ --constraint=base==4.7.0.2 --constraint=filepath==1.3.0.2 --constraint=process==1.2.0.0 --constraint=template-haskell==2.9.0.0 --constraint=transformers==0.3.0.0 --libdir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\lib --bindir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\bin --datadir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\share --docdir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\doc\cmdargs-0.10.13 --htmldir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\doc\cmdargs-0.10.13 --haddockdir=C:\Users\martynov_p\AppData\Roaming\stack\snapshots\x86_64-windows\lts-2.21\7.8.4\doc\cmdargs-0.10.13    Process exited with code: ExitFailure 1    Logs have been written to: "C:\\Users\\martynov_p\\AppData\\Roaming\\stack\\global\\.stack-work\\logs\\cmdargs-0.10.13.log"    Configuring cmdargs-0.10.13...    Setup.hs: does not exist

最佳答案

这可能是由于 cabal 中的错误造成的,可以通过升级 cabal 版本或切换到更新的堆栈解析器来解决。参见

https://github.com/haskell/cabal/issues/1733

https://github.com/commercialhaskell/stack/issues/943

关于haskell - 堆栈安装 : Setup. hs:不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31812379/

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