Cabal problem

Simon Peyton Jones simonpj at microsoft.com
Thu May 8 16:23:35 UTC 2014


Dear Cabal-ers
I have downloaded a binary installation of GHC 7.8.2, for Linux.
Now I want to install regex-compat.  First I had to deal with the http_proxy problem, in my last email.  But now I get this:

cabal install regex-compat

Resolving dependencies...

Downloading regex-posix-0.95.2...

Configuring regex-posix-0.95.2...

Building regex-posix-0.95.2...

Preprocessing library regex-posix-0.95.2...

[1 of 6] Compiling Text.Regex.Posix.Wrap ( dist/build/Text/Regex/Posix/Wrap.hs, dist/build/Text/Regex/Posix/Wrap.o )

[2 of 6] Compiling Text.Regex.Posix.String ( Text/Regex/Posix/String.hs, dist/build/Text/Regex/Posix/String.o )

[3 of 6] Compiling Text.Regex.Posix.Sequence ( Text/Regex/Posix/Sequence.hs, dist/build/Text/Regex/Posix/Sequence.o )

[4 of 6] Compiling Text.Regex.Posix.ByteString ( Text/Regex/Posix/ByteString.hs, dist/build/Text/Regex/Posix/ByteString.o )

[5 of 6] Compiling Text.Regex.Posix.ByteString.Lazy ( Text/Regex/Posix/ByteString/Lazy.hs, dist/build/Text/Regex/Posix/ByteString/Lazy.o )

[6 of 6] Compiling Text.Regex.Posix ( Text/Regex/Posix.hs, dist/build/Text/Regex/Posix.o )

/usr/bin/ld: cannot find -lHSregex-base-0.93.2-ghc7.8.2

/usr/bin/ld: cannot find -lHSmtl-2.1.2-ghc7.8.2

collect2: ld returned 1 exit status

Failed to install regex-posix-0.95.2

cabal: Error: some packages failed to install:

regex-compat-0.95.1 depends on regex-posix-0.95.2 which failed to install.

regex-posix-0.95.2 failed during the building phase. The exception was:

ExitFailure 1



simonpj at cam-05-unx:~/code/HEAD-1$ cabal install regex-base

Resolving dependencies...

All the requested packages are already installed:

regex-base-0.93.2

Use --reinstall if you want to reinstall anyway.

simonpj at cam-05-unx:~/code/HEAD-1$

So regex-base is already installed, but cabal isn't using it for regex-posix; nor is it installing regex-base-0.93.2.  This seems to break the user's-eye view of the Cabal claim that it'll download and install the dependencies.
Any thoughts?
Simon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20140508/6c4c2385/attachment-0001.html>


More information about the cabal-devel mailing list