[darcs-users] Trying to upgrade darcs - cabal error

Eric Kow eric.kow at gmail.com
Sun Mar 10 18:14:14 UTC 2013


From the output, it sounds like you might still be using your old Homebrew Haskell Platform
I'm guessing this purely from the fact that you're getting 'The build-tool has reset ENV. --env=std required.' messages
On Mac btw, things tend to go into ~/Library/Haskell these days than ~/.cabal

On 10 Mar 2013, at 17:42, Ash Moran wrote:

> 
> On 10 Mar 2013, at 14:01, Eric Kow <eric.kow at gmail.com> wrote:
> 
>> I suspect using Homebrew for Darcs in its present form is just making life unnecessarily hard on yourself.
>> I think there's supposed to be some sort of superenv thing in the future (?) to make it not do that resetting ENV thing.
> 
> So… I nuked my ~/.cabal folder. I downloaded the latest Haskell Platform[1] from the Mac page[2]. This told me there were old versions uninstalled, so I ran `sudo uninstall-hs --remove only 7.4.1`, leaving me with v7.4.2.
> 
> I tried `cabal install darcs`, which failed, so I tried `cabal install --verbose cabal-install`, which also failed. The failure doesn't mean anything to me. All output is below.
> 
> Anyone ideas anyone? It's proving incomprehensibly difficult to install darcs, to the point where I'm thinking I must have done something really stupid at some point in the past.
> 
> Cheers
> Ash
> 
> [1] http://lambda.haskell.org/platform/download/2012.4.0.0/Haskell%20Platform%202012.4.0.0%2064bit.pkg
> [2] http://www.haskell.org/platform/mac.html
> 
> 
> ===== Command output
> 
> % cabal install --verbose darcs        
> zsh: correct 'darcs' to '.darcs' [nyae]? n
> Reading available packages...
> Choosing modular solver.
> Resolving dependencies...
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/dataenc/0.14.0.5/dataenc-0.14.0.5.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/dataenc-0.14.0.5-9613...
> Configuring dataenc-0.14.0.5...
> Flags chosen: tests=False
> Dependency array ==0.4.0.0: using array-0.4.0.0
> Dependency base ==4.5.1.0: using base-4.5.1.0
> Dependency containers ==0.4.2.1: using containers-0.4.2.1
> The build-tool has reset ENV. --env=std required.
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/mmap/0.5.8/mmap-0.5.8.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/mmap-0.5.8-9613...
> Configuring mmap-0.5.8...
> Flags chosen: mmaptest=False
> Dependency base ==4.5.1.0: using base-4.5.1.0
> Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
> The build-tool has reset ENV. --env=std required.
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/primitive/0.5.0.1/primitive-0.5.0.1.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/primitive-0.5.0.1-9613...
> Configuring primitive-0.5.0.1...
> Dependency base ==4.5.1.0: using base-4.5.1.0
> Dependency ghc-prim ==0.2.0.0: using ghc-prim-0.2.0.0
> The build-tool has reset ENV. --env=std required.
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/tar/0.4.0.1/tar-0.4.0.1.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/tar-0.4.0.1-9613...
> Configuring tar-0.4.0.1...
> Dependency base ==4.5.1.0: using base-4.5.1.0
> Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
> Dependency directory ==1.1.0.2: using directory-1.1.0.2
> Dependency filepath ==1.3.0.0: using filepath-1.3.0.0
> Dependency old-time ==1.1.0.0: using old-time-1.1.0.0
> Dependency time ==1.4: using time-1.4
> The build-tool has reset ENV. --env=std required.
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/terminfo/0.3.2.5/terminfo-0.3.2.5.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/terminfo-0.3.2.5-9613...
> Configuring terminfo-0.3.2.5...
> Dependency base ==4.5.1.0: using base-4.5.1.0
> The build-tool has reset ENV. --env=std required.
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/utf8-string/0.3.7/utf8-string-0.3.7.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/utf8-string-0.3.7-9613...
> Configuring utf8-string-0.3.7...
> Flags chosen: bytestring-in-base=False
> Dependency base ==4.5.1.0: using base-4.5.1.0
> Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
> The build-tool has reset ENV. --env=std required.
> World file is already up to date.
> cabal: Error: some packages failed to install:
> darcs-2.8.4 depends on utf8-string-0.3.7 which failed to install.
> dataenc-0.14.0.5 failed during the configure step. The exception was:
> ExitFailure 1
> hashed-storage-0.5.10 depends on mmap-0.5.8 which failed to install.
> haskeline-0.7.0.3 depends on terminfo-0.3.2.5 which failed to install.
> mmap-0.5.8 failed during the configure step. The exception was:
> ExitFailure 1
> primitive-0.5.0.1 failed during the configure step. The exception was:
> ExitFailure 1
> tar-0.4.0.1 failed during the configure step. The exception was:
> ExitFailure 1
> terminfo-0.3.2.5 failed during the configure step. The exception was:
> ExitFailure 1
> utf8-string-0.3.7 failed during the configure step. The exception was:
> ExitFailure 1
> vector-0.10.0.1 depends on primitive-0.5.0.1 which failed to install.
> 
> % cabal install --verbose cabal-install
> Reading available packages...
> Choosing modular solver.
> Resolving dependencies...
> Extracting
> /Users/ashmoran/Library/Haskell/repo-cache/hackage.haskell.org/Cabal/1.16.0.3/Cabal-1.16.0.3.tar.gz
> to /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451...
> creating
> /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist/setup
> creating
> /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist
> creating
> /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist/setup
> /usr/local/bin/ghc --make /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/Setup.hs -o /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist/setup/setup -odir /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist/setup -hidir /var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3/dist/setup -i -i/var/folders/l4/d10c6ygs5dg99x0lxwz3hgwr0000gn/T/Cabal-1.16.0.3-9451/Cabal-1.16.0.3
> The build-tool has reset ENV. --env=std required.
> World file is already up to date.
> cabal: Error: some packages failed to install:
> Cabal-1.16.0.3 failed during the configure step. The exception was:
> ExitFailure 1
> cabal-install-1.16.0.2 depends on Cabal-1.16.0.3 which failed to install.
> 
> -- 
> http://www.patchspace.co.uk/
> http://www.linkedin.com/in/ashmoran
> 

-- 
Eric Kow <http://erickow.com>



More information about the darcs-users mailing list