cabal无法读取bytestring cabal文件,用ghc 7.4.1

时间:2012-02-03 04:16:26

标签: haskell ghc

我刚刚在32位linux上从GHC 7.2.2升级到7.4.1。安装很顺利,但是cabal-install并不高兴:

$ cabal update
Downloading the latest package list from hackage.haskell.org
$ cabal install repa
Resolving dependencies...
cabal: Couldn't read cabal file "bytestring/0.9.2.1/bytestring.cabal"

这是我正在运行的阴谋版本

$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library

谢谢!

2 个答案:

答案 0 :(得分:5)

答案 1 :(得分:4)

运行cabal update后运行此代码:

tar -f ~/.cabal/packages/hackage.haskell.org/00-index.tar --delete bytestring/0.9.2.0
tar -f ~/.cabal/packages/hackage.haskell.org/00-index.tar --delete bytestring/0.9.2.1