[Hackage] #281: Installing cabal-install 0.4.0: dependencies problem with zlib

#281: Installing cabal-install 0.4.0: dependencies problem with zlib ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: low | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ---------------------------------+------------------------------------------ cabal-install package 0.4.0 from hackage wants zlib (>=0.3) Ok, zlib-0.4.0.4 from hackage installed: {{{ % ghc-pkg list | grep zlib Yampa-0.9.2, frag-1.1, zlib-0.4.0.4 }}} But: {{{ % runhaskell Setup.lhs configure -v3 Configuring cabal-install-0.4.0... Creating dist (and its parents) /usr/bin/ghc --numeric-version looking for package tool: ghc-pkg near compiler in /usr/bin found package tool in /usr/bin/ghc-pkg /usr/bin/ghc-pkg --version /usr/bin/ghc -c /tmp/tmp27993.c -o /tmp/tmp27993.o /usr/bin/ld -x -r /tmp/tmp27993.o -o /tmp/tmp27994.o /usr/bin/ghc --supported-languages Reading installed packages... /usr/bin/ghc-pkg --global list Setup.lhs: At least the following dependencies are missing: zlib >=0.3 }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/281 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#281: Installing cabal-install 0.4.0: dependencies problem with zlib ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: closed Priority: low | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: normal | Resolution: invalid Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by duncan): * status: new => closed * resolution: => invalid Comment: You want: {{{ runhaskell Setup.lhs configure --user }}} The rationale was that by default package installs are global so the prefix defaults to `/usr/local` and we only look at the global package db. Of course if we are doing a global install then it is vital that we do not depend on packages from the per-user package database because they'd not be available once we'd installed globally. We do acknowledge that the global default is actually a bit of a pain. So for the cabal-install interface we default to per-user installs. I would also recommend that you use the latest version of cabal-install rather than the rather old version that's available on hackage. http://hackage.haskell.org/trac/hackage/wiki/CabalInstall (It needs the development version of Cabal which is why it cannot yet be released on hackage) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/281#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage