[Haskell-beginners] cabal problems

Patrick Wheeler patrick.john.wheeler at gmail.com
Sun May 4 21:35:20 UTC 2014


I have not run into that problem before.

I would download:
http://hackage.haskell.org/packages/index.tar.gz

There is a link for it near the bottom of the main page:
http://hackage.haskell.org

On my mac i would copy it to:

~/.cabal/packages/hackage.haskell.org/.

I am not sure where the cabal directory is on windows though.

If that does not work another option wold but to download the source for
cabal-install and compile it.

cabal unpack cabal-install, or grab the tarball at the bottom of:
http://hackage.haskell.org/package/cabal-install

cd into the directory and use `cabal install`

That should work if you have all of the dependancies already on your
computer. If you don't and the missing dependency list is large(cabal
configure can tell you what you are missing) then it might just be quicker
to reinstall the haskell platform.

Hope that helps,

Patrick


On Sat, May 3, 2014 at 1:09 PM, Kees Bleijenberg <k.bleijenberg at lijbrandt.nl
> wrote:

> I don’t know exactly how, but suddenly I get cabal errors.
>
> If I do cabal update there are no errors, everything is fine.
>
> Cabal install caball-install => cabal: internal error when reading
> packages  index: could not read tar file entry. The package index or
> package cache is probably corrupt. Running cabal update might fix it.
>
> Every  install or update shows the same error message.
>
>
>
> I’am using win7 64 bits, Haskell platform 2013.2.0.0. If i do  cabal  - -
> version => cabal install version 1.18.0.2 using version 1.18.1 of the cabal
> library.
>
> On Google the advice is to clear the directory
> c:\users\<user>\appData\roaming\cabal empty.  But that removes all my
> packages. Isn’t there an easier way?
>
> I have never used cabal sandboxes (at least not on purpose)
>
>
>
> Kees
>
>
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>


-- 
Patrick Wheeler
Patrick.John.Wheeler at gmail.com
Patrick.J.Wheeler at rice.edu
Patrick.Wheeler at colorado.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140504/8036dd03/attachment.html>


More information about the Beginners mailing list