[Haskell-cafe] GHC 7, Platform 2011.2 vs OS X 10.5, Ubuntu 11.04

Daniel Fischer daniel.is.fischer at googlemail.com
Mon May 23 15:22:28 CEST 2011


On Monday 23 May 2011 15:08:41, Jacek Generowicz wrote:
> On 2011 May 23, at 14:42, Daniel Fischer wrote:
> > On Monday 23 May 2011 14:16:43, Jacek Generowicz wrote:
> >> If by "cabal install" you mean use the command "cabal" ... yeah, that
> >> would be great, if only I could install cabal-install, which fails.
> > 
> > With what error?
> > Downloading and unpacking the .tar.gz bundle and then running
> > 
> > $ ./bootstrap.sh
> > 
> > in that directory should work.
> 
> Below is what I get *now* having just successfully installed a fresh
> GHC 7.0.3 and HP 2011.2.0.1. By "successfully installed" I mean that
> configure, make and make install didn't throw up any errors. I haven't
> tested that anything works yet.
> 
> $ ./bootstrap.sh
> Checking installed packages for ghc-7.0.3...
> parsec-2.1.0.1 will be downloaded and installed.

Hmmm?

> network is already installed and the version is ok.
> Cabal-1.8.0.2 will be downloaded and installed.

That's a bad sign.
Have you downoaded the bundle from the cabal-install page?
That's not the right thing to do (yeah, somebody should tell unsuspecting 
travellers).

With ghc-7, you should use cabal-install-0.10.*, download cabal-
install-0.10.2 from hackage
http://hackage.haskell.org/package/cabal-install

> mtl-1.1.0.2 will be downloaded and installed.
> HTTP-4000.0.8 will be downloaded and installed.
> zlib is already installed and the version is ok.
> 
> Downloading parsec-2.1.0.1...
> 
> ...
> 
> Downloading Cabal-1.8.0.2...
> 
> ...
> 
> [56 of 58] Compiling Distribution.Simple.UserHooks ( Distribution/
> Simple/UserHooks.hs, Distribution/Simple/UserHooks.o )
> [57 of 58] Compiling Distribution.Simple ( Distribution/Simple.hs,
> Distribution/Simple.o )
> [58 of 58] Compiling Main             ( Setup.hs, Setup.o )
> Linking Setup ...
> Configuring Cabal-1.8.0.2...
> Setup: At least the following dependencies are missing:
> base >=4 && <3 && >=1 && <5, filepath >=1 && <1.2

You see that that constraint is impossible, don't you?

> 
> Error during cabal-install bootstrap:
> Configuring the Cabal package failed
>

Okay,

$ghc-pkg unregister parsec-2.1.0.1 (unless you want to keep it)

Try it with cabal-install-0.10.2, sorry for the inconvenience.




More information about the Haskell-Cafe mailing list