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

Neil Mitchell ndmitchell at gmail.com
Thu Nov 16 04:14:48 EST 2006


In case any Hat people miss this (pleaes cc Aditya)

---------- Forwarded message ----------
From: Aditya Siram <aditya_siram at hotmail.com>
Date: Nov 16, 2006 2:00 AM
Subject: [Haskell-cafe] Newbie; Can't Install Hat From Source
To: haskell-cafe at haskell.org


Hi all,
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:

**Begin Output**
./configure --install
Configuring for hat... [ 2.05 ]
Starting with earlier config in targets/ix86-Linux/config.cache
[ config: ix86-Linux/ by deech at ubuntu on 15 Nov 2006 ]
  (but cmdline options have precedence)
--------
Looking for already-installed Haskell compilers:
  Looking for ghc...   found 6.6
  Looking for nhc98... (not found)
  Looking for hmake... found 3.13
You said you want to use ghc to build hat.
Done.
--------
                   Configuration report for hat.

You are going to build hat with:            ghc
Executables need .exe suffix?               no  (detected)
Testing for the glib library:               no  (using slower replacement)

Installation directories are now created/checked.
Install directory root is:
    /usr/local
Hat interface files (.hx) go into:
    /usr/local/include/hat-2.05 (exists)
        Array.hx
        ......
        Debug/Trace.hx
Installing hat as a ghc package:
Installing hat package for ghc under
/usr/local/lib/hat-2.05/ix86-Linux/ghc-606
ghc-pkg: cannot find package hat     <-----ERROR MESSAGE!!!!!
Reading package info from stdin ... done.
ghc-pkg: package hat-2.4 is already installed

Scripts go into:
    /usr/local/bin (exists)
        hat-graph
        hat-trans
    hat-tools:
        hat-stack
        hat-check
        hat-observe
        hat-detect
        hat-delta
        hat-view
        hat-trail
        hat-anim
        hat-explore
        hat-cover
        black-hat
        hat-nonterm
        pretty-hat

Executables go into:
    /usr/local/lib/hat-2.05/ix86-Linux (exists)
        config
        hat-anim
        hat-check
        hat-cover
        hat-delta
        hat-detect
        hat-explore
        hat-nonterm
        hat-observe
        hat-stack
        hat-trail
        hat-trans
        hat-view
        black-hat
        pretty-hat

Man pages go into:
    /usr/local/man/man1 (exists)
        hat-anim.1
        hat-delta.1
        hat-detect.1
        hat-observe.1
        hat-stack.1
        hat-trail.1
        hat-trans.1
        pretty-hat.1

Not (re-)installing html documents
Saving current configuration in targets/ix86-Linux/config.cache
Done.

    Please ensure /usr/local/bin is in your PATH variable.
**End Of Output**

The output of 'ghc-pkg list' is:

/usr/local/lib/ghc-6.6/package.conf:
    Cabal-1.1.6, HUnit-1.1, QuickCheck-1.0, base-2.0, cgi-2006.9.6,
    fgl-5.2, (ghc-6.6), haskell-src-1.0, haskell98-1.0, html-1.0,
    mtl-1.0, network-2.0, parsec-2.0, readline-1.0, regex-base-0.71,
    regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0,
    template-haskell-2.0, time-1.0, unix-1.0, xhtml-2006.9.13
/home/deech/.ghc/i386-linux-6.6/package.conf:
    (hat-2.4)   <----ERROR!!!

For some reason it thinks that hat-2.4 is installed.

I tried to run a test program saved in HatTest.hs:

import Prelude

main = do { print "Hello"; }

When I compile it with 'hmake -hat HatTest' I get the following error:
hat-trans   HatTest.hs
Wrote Hat/HatTest.hs
ghc-6.6      -c -package hat -o Hat/HatTest.o Hat/HatTest.hs

Hat/HatTest.hs:3:0:
    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

I'm not really sure how to proceed. Any help is appreciated.

BTW I get the ghc-package: cannot find package hat when I 'apt-get install'
it too.

Thanks..
Deech

_________________________________________________________________
View Athlete's Collections with Live Search
http://sportmaps.live.com/index.html?source=hmemailtaglinenov06&FORM=MGAC01

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Hat mailing list