GHC 5.00.2 RPM apparently circular dependency demands

Tom Moertel tom-list-glasgow-haskell-users@moertel.com
Tue, 26 Jun 2001 09:56:33 -0400


Byron Hale wrote:
> 
> rpm -U ghc-5.00.2-rh62-1.i386.rpm
> error: failed dependencies:
>          ghc = 4.08 is needed by ghc-prof-4.08-1
>          ghc = 5.00.1 is needed by ghc-prof-5.00.1-1

RPM is telling you is that upgrading ghc would break an existing
dependency among your installed packages.  Namely, ghc-prof (GHC
profiling support) is also installed on your computer and depends on
ghc-4.08-1.  Thus, you have two common options:

(1) upgrade both ghc and ghc-prof at the same time:

    rpm -Uhv ghc-5.00.2-rh62-1.i386.rpm ghc-prof-5.00.2-rh62-1.i386.rpm

(2) or, remove ghc-prof (eliminating the dependency) before upgrading:

    rpm -e ghc-prof
    rpm -Uhv ghc-5.00.2-rh62-1.i386.rpm

Go with (1) if you want profiling support in your GHC installation; (2)
otherwise.

Let me know if neither of these work for you.

Cheers,
Tom