[Haskell-cafe] Newbie; Can't Install Hat From Source

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Nov 16 05:42:10 EST 2006


"Aditya Siram" <aditya_siram at hotmail.com> wrote:

> I have been trying to install Hat for the last couple of days but GHC
> does  not recognize it as a package. I compiled 2.05 from source, but
> at the 'make  install' step I see this error message:
> 
> Installing hat package for ghc under 
>   /usr/local/lib/hat-2.05/ix86-Linux/ghc-606
> ghc-pkg: cannot find package hat     <-----ERROR MESSAGE!!!!!

This error message can be safely ignored - it comes from a requirement
to support several different versions of ghc, each of which has a
different interface to the package manager ghc-pkg.

> ghc-pkg: package hat-2.4 is already installed
> 
> /usr/local/lib/ghc-6.6/package.conf:
>     ...
> /home/deech/.ghc/i386-linux-6.6/package.conf:
>     (hat-2.4)   <----ERROR!!!
> 
> For some reason it thinks that hat-2.4 is installed.

This is one of a couple of bugs in the 2.05 package.  The .cabal file
simply had the wrong version number in it.

>     Bad interface file: 
> /usr/local/imports/hat-2.05/ghc-606/Hat/PreludeBasic.hi
>         Something is amiss; requested module  hat-2.4:Hat.PreludeBasic
> differs from name found in the interface file hat:Hat.PreludeBasic

And this is the other bug: the Hat library package was built using
"-package-name hat" instead of "-package-name hat-2.05" (as now required
by ghc-6.6 and above).

I have re-rolled the Hat-2.05 distribution package with these two very
minor bugfixes.  Please try downloading it again, and re-building.

Regards,
    Malcolm


More information about the Haskell-Cafe mailing list