[xmonad] Cabal install problem

Patrick Brisbin pbrisbin at gmail.com
Fri Sep 2 22:00:14 CEST 2011


I ran into this exact problem and solved it more or less. I eventually 
gave up on the motivating task and ditched my ~/.ghc and ~/.cabal anyway 
so let me try to remember how it got it going...

  1. Install darcs

    1.a. Don't use MacPorts as it pulls in an older GHC as a dependency, 
         google around for a once-click darcs installer which will use 
         your existing GHC

  2. darcs get http://darcs.haskell.org/cabal

  3. Manually fix the bootstrap.sh file

Towards the top of the script should be a few lines that specify VER 
and VER_REGEX variables.

You need to update these variables to the latest versions available on 
hackage. Also, update the version regex to include the Cabal version 
that came with your GHC installation (so bootstrap won't reinstall it).

This prevents bootstrap from pulling older library versions with a base 
< whatever version bound.

I also had to add a new library dependency for "random". This means a 
VER/VER_REGEX line, an info_pkg line and a do_pkg line.

  4. /bin/sh bootstrap.sh

...and hope.

The darcs step might not be needed, only the updates to bootstrap -- at 
the point I realized the core issue (bootstrap downloading outdated 
versions of support libraries) I had already darcs gotten it...

Anyway, this got me a working cabal- install with a preexisting GHC 7.2 
on Mac OS X 10.6 as recently as this morning.

HTH,
Pat

PS: I lol'd at "base >=4 && <3"...

On 08/29/11 at 04:41pm, Brent Yorgey wrote:
> The OP was in fact running the cabal-install bootstrap script.  The
> strange thing is why the cabal-install bootstrap script was trying to
> install the Cabal library.  I don't know the answer though.
> 
> -Brent
> 
> On Mon, Aug 29, 2011 at 03:49:31PM -0400, wagnerdm at seas.upenn.edu wrote:
> > You should already have the Cabal library installed (it comes with
> > GHC, and should not be upgraded -- it is released in tandem with
> > changes to GHC's internals). If you are trying to install the "cabal"
> > command, the package to get from Hackage is called "cabal-install".
> > 
> > Sorry about the weird naming, and good luck.
> > ~d
> > 
> > Quoting Tayfur Yilmaz <yilmaz.tayfur at gmail.com>:
> > 
> > >Hi everyone
> > >I have some problem for install 'cabal-install package'  I downloaded and
> > >succesfully build a binary source ghc-7.0.2. Then I want to install
> > >cabal-0.10.2 and ? see some warning and last output like this
> > >Linking Setup ...
> > >Configuring Cabal-1.10.1.0...
> > >Setup: At least the following dependencies are missing:
> > >base >=4 && <3 && >=2 && <5, unix >=2.0 && <2.5
> > >
> > >Error during cabal-install bootstrap:
> > >Configuring the Cabal package failed
> > >
> > >Then ? want to use cabal-0.8 and output like this
> > >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,
> > >unix >=2.1 && <2.5
> > >
> > >Error during cabal-install bootstrap:
> > >Configuring the Cabal package failed
> > >
> > >So Which compatible versiyon for cabal-install version I use Kde4 on
> > >Pardus<http://www.pardus.org.tr/>
> > >
> > >Best Regards
> > >
> > 
> > 
> > 
> > _______________________________________________
> > xmonad mailing list
> > xmonad at haskell.org
> > http://www.haskell.org/mailman/listinfo/xmonad
> 
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad

-- 
patrick brisbin



More information about the xmonad mailing list