gpt4 book ai didi

windows - 构建数据默认包的奇怪错误

转载 作者:可可西里 更新时间:2023-11-01 10:35:33 26 4
gpt4 key购买 nike

我在尝试 cabal install data-default 时收到一些奇怪的错误消息。即使在新的沙箱中,该包也会发生相同的基本现象。我可以毫无问题地安装其他软件包。

错误消息具有以下形式,但会出现在 4 个 data-default-instances- 包中:

[1 of 1] 编译 Data.Default.Instances.OldLocale(Data\Default\Instances\OldLocale.hs,dist\dist-sandbox-6a114df1\build\Data\Default\Instances\OldLocale.o)
C:\Program Files (x86)\MinGHC-7.10.1\ghc-7.10.1\mingw\bin\ar.exe:dist/dist-sandbox-6a114df1\build\libHSdata-default-instances-old-locale-0.0 .1-6jcjjaR25tK4x3nJhHHjFM.a-8696\libHSdata-default-instances-old-locale-0.0.1-6jcjjaR25tK4x3nJhHHjFM.a: 没有这样的文件或目录

知道发生了什么吗?

ghc-pkg 检查的输出

C:\Users\Doug\Documents\GitHub\bird-brain [estimator]> ghc-pkg check
WARNING: cache is out of date: C:/Program Files (x86)/MinGHC-7.10.1/ghc-7.10.1\lib\package.conf.d\pa
ckage.cache
ghc will see an old view of this package db. Use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\QuickCh
eck-2.8\html\QuickCheck.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\QuickCheck-2.
8\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\tf-rand
om-0.5\html\tf-random.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\tf-random-0.5
\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\random-
1.1\html\random.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\random-1.1\ht
ml doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\primiti
ve-0.5.4.0\html\primitive.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\primitive-0.5
.4.0\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\mtl-2.2
.1\html\mtl.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\mtl-2.2.1\htm
l doesn't exist or isn't a directory

最佳答案

使用 https://github.com/haskell/cabal/issues/2502 的策略有可能解决此问题,这最终与 Windows 对总路径长度的限制有关。

使用堆栈是另一种解决方案,可能是第一个尝试的解决方案,因为它在内部使用的文件夹可能离根足够近,以便路径有效。

关于windows - 构建数据默认包的奇怪错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29403419/

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