gpt4 book ai didi

haskell - cabal 安装问题

转载 作者:行者123 更新时间:2023-12-03 03:49:52 27 4
gpt4 key购买 nike

我在使用 cabal 安装软件包时遇到一些问题。发出以下命令:

> cabal install ghc-mod stylish-haskell haskell-docs hdevtools

产生这些错误

Building yaml-0.8.8.3...
Preprocessing library yaml-0.8.8.3...
<command line>: cannot satisfy -package-id aeson-0.7.0.6-b19228a032fb34be4eef122
913c6e81a
(use -v for more information)
Failed to install yaml-0.8.8.3
cabal: Error: some packages failed to install:
ghc-mod-4.1.1 depends on haskell-src-exts-1.15.0.1 which failed to install.
haskell-docs-0.2.0.0 failed during the building phase. The exception was:
ExitFailure 1
haskell-src-exts-1.15.0.1 failed while unpacking the package. The exception
was:
C:\Users\Arnob\AppData\Local\Temp\haskell-src-exts-1.15.0.1-5840\haskell-src-ext
s-1.15.0.1\dist-tmp:
MoveFileEx
"C:\\Users\\Arnob\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-5840\\haskell
-src-exts-1.15.0.1\\dist-tmp"
"C:\\Users\\Arnob\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-5840\\haskell
-src-exts-1.15.0.1\\dist":
permission denied (Access is denied.)
hdevtools-0.1.0.5 depends on unix-2.7.0.1 which failed to install.
hlint-1.8.61 depends on haskell-src-exts-1.15.0.1 which failed to install.
stylish-haskell-0.5.10.0 depends on yaml-0.8.8.3 which failed to install.
unix-2.7.0.1 failed during the configure step. The exception was:
ExitFailure 1
yaml-0.8.8.3 failed during the building phase. The exception was:
ExitFailure 1

我还尝试通过运行安装 hdevltools 的 Windows 分支

> cabal install

在克隆的 github 存储库上。然而这也会产生错误。

作为最后的努力,我尝试将远程存储库更改为“stackage”,即

remote-repo: stackage: http://www.stackage.org/stackage/44ea140bd97cbb0f6140d331f8f7f8667a637eda

但这也没有帮助。

感谢所有帮助!

最佳答案

看起来这是一个 Windows 特定问题,cabal 无法移动 haskell-src-exts 发行版中的某些必需文件(该问题也出现在其他软件包中,例如 pandoc)。这可能与此处报告的问题有关:https://github.com/haskell/cabal/issues/1698

我能够通过执行以下操作来安装 haskell-src-exts 软件包:

> cabal unpack haskell-src-exts
> cd haskell-src-exts
> cabal install

关于haskell - cabal 安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24220620/

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