[Haskell-beginners] cabal problems

Kees Bleijenberg k.bleijenberg at lijbrandt.nl
Mon May 5 09:32:02 UTC 2014


Thanks Patrick. I think cabal on Windows is different. There is no index.tar.gz on my computer. Maybe I'll wait for a new release of the Haskell Platform to install GHC again :-(

Additonal: a few days ago I tried to install eclipseFP and the installation failed with a cabal error (don't know what error).  Maybe that is the source of my problems….?

Kees
=========================

Van: Beginners [mailto:beginners-bounces at haskell.org] Namens Patrick Wheeler
Verzonden: zondag 4 mei 2014 23:35
Aan: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell
Onderwerp: Re: [Haskell-beginners] cabal problems

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 
________________________________________
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4570 / Virus Database: 3931/7439 - Release Date: 05/04/14



More information about the Beginners mailing list