Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell 更新阴谋集团时出错_Haskell_Cabal - Fatal编程技术网

Haskell 更新阴谋集团时出错

Haskell 更新阴谋集团时出错,haskell,cabal,Haskell,Cabal,我无法在Windows7上更新cabal。运行cabal install cabal install时,出现以下错误: 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.

我无法在Windows7上更新cabal。运行
cabal install cabal install
时,出现以下错误:

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的任何信息。我错过什么了吗?我正在使用haskell platform for windows的2013.2.0.0版。

我找到了一个解决方法,即使用MSYS运行命令
cabal install-cabal install

然而,我注意到,对于最新的cabal,在运行
cabal安装时,我得到了很多
不存在的
错误——如果您不在MSYS控制台中,只有依赖项
cabal configure


编辑在我的例子中,它是由本地64位perl安装引起的。重新排序perl&我的路径中的haskell平台解决了这个问题。

我也遇到了同样的问题,试图通过MSYS运行它,但它对我不起作用

我的解决方案是修改%PATH%环境变量,只保留标准Windows目录和Haskell目录


我想使用R和Python找到的构建工具在构建过程中出错。

Cabal将更新版本安装到
%USER%/AppData/Roaming/Cabal/bin
,在指向系统安装的路径之前,您的
路径中是否有此项?我以前也遇到过问题,
cabal
由于某种原因无法删除旧缓存,请尝试删除
%USER%/AppData/Roaming/cabal/packages/haskage.haskell.org/00 index.
并再次运行
cabal update
。@bheklill我检查了路径并尝试删除缓存,但没有解决更新问题。我的cabal.exe文件位于haskell平台存储库中,而不是Roaming/cabal/bin目录中。这是个问题吗?你试过
cabal安装cabal
cabal安装
程序包取决于库
cabal
,API和可执行文件被拆分为单独的程序包,以便用户可以使用API而无需绑定到特定的可执行文件。成功了吗?@bheklillr我试过了,它给了我相同的错误信息,减去最后一行。但是我忘了提到我已经安装了eclipseFp,它利用了阴谋集团API。我不知道这是否与此有关。我不能说,我从未尝试过日食。我想在这一点上必须有其他人帮忙,我已经用尽了我在Windows上遇到的阴谋问题的经验=/