[Haskell-cafe] cabal-install problem with alex dependency in bytestring-lexing

Joachim Breitner nomeata at debian.org
Fri Mar 16 11:19:23 CET 2012


Hi,

Am Freitag, den 16.03.2012, 21:00 +1100 schrieb Erik de Castro Lopo:
> With a base system with just ghc and cabal-install, if I try to install
> bytestring-lexing I get:
> 
>     $ cabal install bytestring-lexing
>     Resolving dependencies...
>     Configuring bytestring-lexing-0.4.0...
>     cabal: The program alex version >=2.3 is required but it could not be found.
>     cabal: Error: some packages failed to install:
>     bytestring-lexing-0.4.0 failed during the configure step. The exception was:
>     ExitFailure 1
> 
> The cabal file for bytestring-lexing contains
> 
>     Build-Tools:       alex >= 2.3
> 
> Is there any way to make the cabal install of bytestring-lexing force
> the install of alex first?

no, cabal-install does not automatically install build-tools at all,
only Cabal checks them for compilation. I guess the reason is that
build-tools needs to be put on the PATH, and that is beyond the scope of
cabal-install.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120316/084bb336/attachment.pgp>


More information about the Haskell-Cafe mailing list