Ticket #407 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

cabal-install-0.5 broken with ghc-6.10

Reported by: Paul Visschers Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version:
Severity: major Keywords:
Cc: Difficulty: normal
GHC Version: 6.10.1 Platform: Linux

Description

I have a fresh install of GHC 6.10.1 and when I try to install new packages I get the following message:

cabal: ghc-pkg describe * failed. If you are using ghc-6.9 and have an empty
user package database then this is probably due to ghc bug #2201. The
workaround is to register at least one package in the user package db.

I indeed have an empty user package database, but I kind of wanted to install my packages globally anyway, so I try again with the "--global" flag. This time I get the "Resolving dependencies..." message and then nothing more seems to happen. After a while my cpu's are both fully used and so is my memory.

Change History

Changed 5 years ago by duncan

  • status changed from new to closed
  • version 1.6.0.1 deleted
  • resolution set to fixed
  • summary changed from Installing new packages takes forever to cabal-install-0.5 broken with ghc-6.10

The version of cabal-install you are using is not compatible with ghc-6.10. You will need to upgrade to the latest version (cabal-install-0.6.0).

If you now only have ghc-6.10 installed then you will have to install cabal-install without using the existing non-working version of cabal-install. If you've still got ghc 6.8 installed then it's slightly easier:

cabal update
cabal install -w ghc-6.8.2 cabal-install

and the resulting version will work with 6.10 too.

Note: See TracTickets for help on using tickets.