Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cabal can't read bytestring cabal file, with ghc 7.4.1

Tags:

haskell

ghc

I just upgraded from GHC 7.2.2 to 7.4.1 on 32-bit linux. The install went fine, but cabal-install is not happy:

$ 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"

Here's the cabal version I'm running:

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

Thanks!

like image 643
Chad Scherrer Avatar asked Feb 03 '12 04:02

Chad Scherrer


2 Answers

There's a workaround through here: http://www.haskell.org/pipermail/haskell-cafe/2012-February/099077.html

like image 131
alias Avatar answered Oct 17 '22 22:10

alias


run this after you run 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
like image 44
wuxb Avatar answered Oct 18 '22 00:10

wuxb