Cabal 1.4.0.1 on Debian Stable/GHC 6.6

Jochem Berndsen jochem at functor.nl
Tue Jun 24 04:51:14 EDT 2008


Hi,

On a Debian stable (etch) system, I have the following packages
installed:

jochem at huygens:/tmp/Cabal-1.4.0.1$ dpkg -l | grep ghc
ii  ghc6                              6.6-3
GHC - the Glasgow Haskell Compilation system
ii  ghc6-prof                         6.6-3
Profiling libraries for the Glasgow Haskell
ii  libghc6-filepath-dev              0.11-2
GHC 6 library for manipulating FilePath's
ii  libghc6-mtl-dev                   1.0-3
Haskell monad transformer library for GHC
ii  libghc6-network-dev               2.0-3
Haskell network library for GHC
jochem at huygens:/tmp/Cabal-1.4.0.1$ ghc-pkg list
/usr/lib/ghc-6.6/package.conf:
    Cabal-1.1.6, (FilePath-0.11), base-2.0, filepath-1.1.0.0,
    (ghc-6.6), haskell98-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, unix-1.0
jochem at huygens:/tmp/Cabal-1.4.0.1$

I compiled Setup.hs, ran './Setup configure', './Setup build' and
finally as root './Setup install'. Then ghc-pkg list gave:

jochem at huygens:/tmp/bimap-0.2.2$ ghc-pkg list
/usr/lib/ghc-6.6/package.conf:
    Cabal-1.1.6, Cabal-1.4.0.1, (FilePath-0.11), base-2.0,
    filepath-1.1.0.0, (ghc-6.6), haskell98-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, unix-1.0
jochem at huygens:/tmp/bimap-0.2.2$

But Cabal seems to be broken; for example, with the bimap package from
Hackage:

jochem at huygens:/tmp/bimap-0.2.2$ runghc Setup.lhs configure
Configuring bimap-0.2.2...
Setup.lhs: ghc version >=6.4 is required but the version of /usr/bin/ghc
could
not be determined.
jochem at huygens:/tmp/bimap-0.2.2$

Cabal 1.2.3.0 seems to be working. What am I doing wrong? Or is this an
unsupported combination?

-- 
Jochem Berndsen | jochem at functor.nl
GPG: 0xE6FABFAB



More information about the Libraries mailing list