[Haskell-cafe] Cabal

Duncan Coutts duncan.coutts at googlemail.com
Mon Nov 9 16:04:40 EST 2009


On Sun, 2009-11-08 at 19:29 -0800, Philippos Apolinarius wrote:

> D:\ghc\ghcapi>cabal install mkcabal

Note that as of cabal-install-0.8, the "mkcabal" functionality is
integrated as "cabal init" (thanks to Brent Yorgey). This does not
depend on less portable packages like pcre and readline (meaning it will
work on Windows).

> Resolving dependencies...
> Downloading pcre-light-0.3.1...
> Configuring pcre-light-0.3.1...

There's no reason pcre-light needs a configure script. It should be
removed. (It's also not used consistently, the Setup.hs is for a
different build-type than the one specified in the .cabal file). 

> Downloading readline-1.0.1.0...
> Configuring readline-1.0.1.0...
> cabal: Error: some packages failed to install:
> mkcabal-0.4.2 depends on readline-1.0.1.0 which failed to install.
> pcre-light-0.3.1 failed during the configure step. The exception was:
> exit: ExitFailure 1
> readline-1.0.1.0 failed during the configure step. The exception was:
> exit: ExitFailure 1

As of Cabal-1.8 the error is reported as:

        cabal: The package has a './configure' script. This requires a
        Unix compatibility toolchain such as MinGW+MSYS or Cygwin.

Duncan



More information about the Haskell-Cafe mailing list