更新cabal时出错 [英] error when updating cabal
问题描述
我无法在Windows 7上更新cabal。当运行 cabal install cabal-install
时,出现以下错误:
I cannot update cabal on windows seven. When running cabal install cabal-install
, I get the following error:
Linking C:\Users\sberg\AppData\Local\Temp\Cabal-1.18.1.2-10956\Cabal-1.18.1.2\dist\setup\setup.exe ...
Configuring Cabal-1.18.1.2...
setup.exe: does not exist
Failed to install Cabal-1.18.1.2
cabal: Error: some packages failed to install:
Cabal-1.18.1.2 failed during the configure step. The exception was:
ExitFailure 1
cabal-install-1.18.0.2 depends on Cabal-1.18.1.2 which failed to install.
我找不到关于haskellwiki / cabal faq的任何信息。我错过了什么吗?我正在使用windows的haskell平台版本2013.2.0.0。
I could not find any information on haskellwiki/cabal faq. Am I missing something? I am using the version 2013.2.0.0 of the haskell platform for windows.
推荐答案
我找到了一个解决方法,即运行使用MSYS命令 cabal install cabal-install
。
I have found a workaround, which is to run the command cabal install cabal-install
with MSYS.
然而,我注意到在最新的cabal中,很多不存在
运行时出错 cabal install --only-dependencies
或 cabal configure
如果您不在MSYS控制台中。
I noticed however that with the newest cabal, I get a lot of does not exist
errors when running cabal install --only-dependencies
or cabal configure
if you are not in a MSYS console.
编辑在我的情况下,它是由本地64位perl安装。重新排序perl&我的道路上的哈斯克尔平台解决了这个问题。
Edit In my case it was caused by a local 64bits perl install. Reordering perl & the haskell platform in my path solved the issue.
这篇关于更新cabal时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!