Hi,

I'm adding Duncan Coutts to this message in case he has other advvice to
give.  It looks like the cabal-install bootstrap script was not made
with GHC 6.6 in mind.

On Sun, Sep 07, 2008 at 12:42:29 +0200, Thorkil Naur wrote:
> Based on my experience installing cabal install  (see below), I would tend to 
> conclude that these instructions for installing maybench does not go well 
> together with
> 
> > $ ghc --version
> > The Glorious Glasgow Haskell Compilation System, version 6.6.1
> 
> at least. But please read on and conclude for yourself.
> 
> > You can install maybench by using 
> > cabal install, following the instructions below.
> > 
> > 1. Install cabal install
> > ------------------------
> > wget 
> http://hackage.haskell.org/packages/archive/cabal-install/0.5.2/cabal-install-0.5.2.tar.gz
> > tar -zxf cabal-install-0.5.2.tar.gz 
> > cd cabal-install-0.5.2
> > ./bootstrap.sh 
> 
> This ended:
> 
> > Setup: At least the following dependencies are missing:
> > unix >=2.2 && <2.4
> 
> I should say that I have never used cabal install before, nor cabal itself 
> particularly often. But after getting
> 
> > Setup: At least the following dependencies are missing:
> > directory -any
> 
> for the unix-2.3.0.0 configure,
> 
> > Setup: At least the following dependencies are missing:
> > old-time -any
> 
> for the directory-1.0.0.0 configure,
> 
> > Setup: At least the following dependencies are missing:
> > old-locale -any
> 
> for the old-time-1.0.0.0 configure and having successfully installed 
> old-locale-1.0.0.0, building old-time-1.0.0.0 now ended
> 
> > System/Time.hsc:118:7:
> >     Could not find module `System.Locale':
> >       it was found in multiple packages: old-locale-1.0.0.0 base

Thanks for being such a good sport about this.  So the cabal-install
dependencies are Cabal, HTTP and zlib.  Do you know which subset of
these installs painlessly on GHC 6.6?

The bootstrap script should have already downloaded
http://hackage.haskell.org/packages/archive/Cabal/1.4.0.2/Cabal-1.4.0.2.tar.gz
http://hackage.haskell.org/packages/archive/HTTP/3001.0.4/HTTP-3001.0.4.tar.gz
http://hackage.haskell.org/packages/archive/zlib/0.4.0.4/zlib-0.4.0.4.tar.gz
 
> I seemed to recognize this as similar to other stories where people have had 
> trouble with base package split, cabal version and the like. Please 
> understand that I know that this is not the place to complain about this, I 
> merely wish to document that I did make an effort to work around the problems 
> that I encountered. In fact, I tried several other things (and if you are 
> interested, I will gladly tell you about them) that also failed.

> > 2. Install maybench
> > -------------------
> > cabal update
> > cabal install maybench --global
> 
> Without cabal install, I was unable to do this. I did try to install it as an 
> ardinary Cabal package, but got:
> 
> > Setup: maybench.cabal:8: 'Executable' stanza starting with field 'category'

My guess here is that you have an older version of Cabal.  Could you
try ghc-pkg list Cabal?  In my eager GHC 6.6 days, I recall that
upgrading the Cabal library was not such a bad experience.  Maybe there
is an older but good-enough version of Cabal that will do the trick.

> 
> I didn't try to investigate this further.
> 
> > ...
> 
> So please advice: What should I try next?
> 
> Thanks a lot and best regards
> Thorkil

Sorry.  This was more troublesome than I anticipated.  I expect GHC 6.8
users to have a smoother experience at least :-)

Thanks,

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: pgp8G3REUEKSs.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to