开发者

Installing a Haskell package from Hackage through Cabal gets stuck at dependency resolution

Here is the output from verbose mode. I know this used to work for me before but now this happens. I've tried it with other packages and got the same result.

$ sudo cabal install test-framework-quickcheck2开发者_如何学Python -v
/usr/local/bin/ghc --numeric-version
looking for package tool: ghc-pkg near compiler in /usr/local/bin
found package tool in /usr/local/bin/ghc-pkg
/usr/local/bin/ghc-pkg --version
/usr/bin/gcc -dumpversion
/usr/local/bin/ghc -c /tmp/412.c -o /tmp/412.o
/usr/bin/ld -x -r /tmp/412.o -o /tmp/413.o
/usr/local/bin/ghc --supported-languages
Reading installed packages...
/usr/local/bin/ghc-pkg list
Reading available packages...
Resolving dependencies...

At this point, the program starts to eat up virtual memory, locking up the system and eventually prompting the OS to warn me of dwindling disk space.

Here's my environment. I'm also on Mac OS X 10.4.11.

$ ghc --version  
The Glorious Glasgow Haskell Compilation System, version 6.8.2
$ ghc-pkg list -V
GHC package manager version 6.8.2
$ cabal --version
cabal-install version 0.5.9
using version 1.5.3 of the Cabal library 


The solution in this case is to upgrade to a more recent cabal-install/Cabal pair. The current standard (to be part of the 2010.2 Haskell Platform) is:

  • Caba1 1.8.0.6
  • cabal-install 0.8.2

with GHC 6.12.3.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜