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
can';使用ghc-7.8(@haskell src exts)构建lambdabot_Haskell_Cabal - Fatal编程技术网

can';使用ghc-7.8(@haskell src exts)构建lambdabot

can';使用ghc-7.8(@haskell src exts)构建lambdabot,haskell,cabal,Haskell,Cabal,我试图用ghc-7.8.2安装lambdabot,但在安装haskell src exts时遇到错误。为了诊断这个问题,我试着 cabal install haskell-src-exts -v3 并得到以下错误。我使用的是64位Windows XP。我不知道这是否与windows目录名中的空格有关。有没有解决问题的想法/建议 ... [_18] next goal: array (dependency of haskell-src-exts-1.15.0.1) [_18] trying: a

我试图用ghc-7.8.2安装
lambdabot
,但在安装
haskell src exts
时遇到错误。为了诊断这个问题,我试着

cabal install haskell-src-exts -v3
并得到以下错误。我使用的是64位Windows XP。我不知道这是否与windows目录名中的空格有关。有没有解决问题的想法/建议

...
[_18] next goal: array (dependency of haskell-src-exts-1.15.0.1)
[_18] trying: array-0.5.0.0/installed-d6d...
[_19] done
Ready to install haskell-src-exts-1.15.0.1
Extracting C:\Documents and Settings\ting\Application
Waiting for install task to finish...
Data\cabal\packages\hackage.haskell.org\haskell-src-exts\1.15.0.1\haskell-src-exts-1.15.0.1.tar.gz
to C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008...
Renaming
'C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008\haskell-src-exts-1.15.0.1\dist'
to
'C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008\haskell-src-exts-1.15.0.1\dist-tmp'.
creating
C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008\haskell-src-exts-1.15.0.1\dist
Renaming
'C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008\haskell-src-exts-1.15.0.1\dist-tmp'
to
'C:\DOCUME~1\ting\LOCALS~1\Temp\haskell-src-exts-1.15.0.1-3008\haskell-src-exts-1.15.0.1\dist'.
Failed to install haskell-src-exts-1.15.0.1
Last 10 lines of the build log ( C:\Documents and Settings\ting\Application Data\cabal\logs\haskell-src-exts-1.15.0.1.log ):
cabal.exe: C:\Documents and Settings\ting\Application
Data\cabal\logs\haskell-src-exts-1.15.0.1.log: does not exist

我想出来了。我试图按照注释的建议找到日志文件。但是,在新安装的ghc-7.8上运行cabal install lambdabot后,在cabal/log文件夹中,hashtable和haskline只有两个日志文件

为了查看此错误是否与默认cabal目录中的空格有关,我使用了一个没有空格的文件夹并进行了手动安装:

$ cd /d/temp
$ cabal get haskell-src-exts
Unpacking to haskell-src-exts-1.15.0.1\
$ cd haskell-src-exts-1.15.0.1/ && cabal configure
Resolving dependencies...
[1 of 1] Compiling Main             ( dist\setup\setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring haskell-src-exts-1.15.0.1...
setup.exe: The program 'happy' version >=1.17 is required but it could not be
found.
所以,依赖中的快乐不知何故失踪了,阴谋集团没有发现。原来使用默认的
cabal install
命令
happy
也有问题,可以通过手动安装来解决,例如
/d/temp

cabal get happy && cd happy* && cabal configure && cabal install

这将安装
happy
,并对
haskell src exts执行相同操作
将正确安装软件包。但是在安装lambdabot的过程中还存在其他错误,其中似乎没有一个与haskell src exts和happy在这里遇到的错误相同。

尝试查找日志文件。将其内容添加到您的答案中。