我有一些问题,安装软件包使用阴谋。发出以下命令:
> 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我还尝试过通过运行
> cabal install克隆的github回购。然而,这也会产生错误。
作为最后的努力,我尝试将远程回购更改为“堆栈”,即
remote-repo: stackage: http://www.stackage.org/stackage/44ea140bd97cbb0f6140d331f8f7f8667a637eda但这也于事无补。
感谢所有的帮助!
发布于 2014-06-15 17:16:14
看起来这是一个特定于Windows的问题,在这个问题上,阴谋集团无法在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发布于 2014-06-15 09:18:07
您的问题就在Cabal的错误消息中列出:
MoveFileEx ... ...:
permission denied (Access is denied.)因此,您的Windows安装(或至少您的用户临时文件夹)似乎存在权限问题,这就是Cabal失败的原因。
https://stackoverflow.com/questions/24220620
复制相似问题