Haskell 堆栈安装:Setup.hs:不存在
我将stack.exe v0.1.2.2放在一个路径目录中,然后通过Haskell 堆栈安装:Setup.hs:不存在,haskell,haskell-stack,Haskell,Haskell Stack,我将stack.exe v0.1.2.2放在一个路径目录中,然后通过stack setup安装ghc-7.8.4 我试图安装ghc mod并获得奇怪错误Setup.hs:不存在: stack install ghc-mod Using resolver: lts-2.21 from global config file: C:\Users\martynov_p\AppData\Roaming\stack\global\stack.yaml ghc-paths-0.1.0.9: configure
stack setup
安装ghc-7.8.4
我试图安装ghc mod并获得奇怪错误Setup.hs:不存在
:
stack install ghc-mod
Using resolver: lts-2.21 from global config file: C:\Users\martynov_p\AppData\Roaming\stack\global\stack.yaml
ghc-paths-0.1.0.9: configure
data-default-class-0.0.1: configure
dlist-0.7.1.1: configure
ansi-terminal-0.6.2.1: configure
hscolour-1.22: configure
extra-1.1: configure
mtl-2.1.3.1: configure
cmdargs-0.10.13: configure
Progress: 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
堆栈安装ghc模块
使用全局配置文件C:\Users\martynov\u p\AppData\Roaming\stack\global\stack.yaml中的解析程序:lts-2.21
ghc-paths-0.1.0.9:配置
data-default-class-0.0.1:配置
dlist-0.7.1.1:配置
ansi-terminal-0.6.2.1:配置
hscolor-1.22:配置
extra-1.1:配置
mtl-2.1.3.1:配置
cmdargs-0.10.13:配置
进展:8/54
--使用以下命令生成包cmdargs-0.10.13时:
C:\\Users\\martynov\u p\\appdata\\Local\\Programs\\stack\\x86\u 64-windows\\ghc-7.8.4\\bin\\runhaskell.exe-package=Cabal-1.18.1.5-clear package db-global package db-package db-db=C:\Users\martynov\p\appdata\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\pkgdb\C:\Users\MARTYN~1\appdata\Local\Temp\stack12088\Setup.hs--builddir=.stack work\dist\x86\u 64-windows\Cabal-1.18.1.5\configure--user--package db=clear--package db=global--package db=C:\Users\martynov\u p\AppData\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\pkgdb\--constraint=base==4.7.0.0.2--constraint=filepath==1.3.0.2--constraint=process 1.2.0.0--constraint=process 1.2.2.0.0--constraint=transformers==0.3.0.0--libdir=C:\Users\martynov\p\AppData\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\lib--bindir=C:\Users\martynov\p\AppData\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\bin--datadir=C:\Users\martynov\p\AppData\Roaming\stack\snapshots\x86\lts-2.21\7.8.4\share--docdir=C:\Users\martynov\u p\AppData\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\doc\cmdargs-0.10.13--htmldir=C:\Users\martynov\u p\AppData\Roaming\stack\snapshots\x86\u 64-windows\lts-2.21\7.8.4\doc\cmdargs-0.10.13--haddockdir=C:\Users\martynov\p\AppData\Roaming\stack\snapshots\x86\u-64\windows\lts\7.21\8.10.10\mdargs
进程已退出,代码为:ExitFailure 1
日志已写入:“C:\\Users\\martynov\u p\\AppData\\Roaming\\stack\\global\.stack work\\Logs\\cmdargs-0.10.13.log”
正在配置cmdargs-0.10.13。。。
Setup.hs:不存在
这可能是由于cabal中的一个bug造成的,可以通过升级cabal版本或切换到更新的堆栈解析程序来解决。看
也许您可以将
C:\\Users\\martynov\u p\\AppData\\Roaming\\stack\\global\.stack work\\logs\\cmdargs-0.10.13.log中的内容包括在内?@adamse这里没有什么新内容:配置cmdargs-0.10.13。。。Setup.hs:不存在我遇到了一个类似的问题:对我来说,它只发生在Windows上,并且只发生在GHC 7.10上。{1,2}。我可以用GHC7.10.{1,2}在CentOS、Ubuntu和OSX上构建项目,用GHC7.8.4在Windows上构建项目。在Windows上,此错误似乎与特定的依赖项无关:例如,哪个包以这种方式失败取决于我并发运行的作业数(堆栈的-j
选项)。我在Mingc 7.8.4 x64(适用于Windows)上也遇到了同样的问题。不太理想的解决方案?安装Mingc 7.8.4 i386。然后事情开始起作用了。作为补充信息,我检查了@ntc2中的-j
参数,但是对于任意数量的并发作业,问题仍然存在。