
Hi, After I installed GHC 7.0.2 and cabal-install 0.10.0 using Cabal library 1.10.1, I found that some package failed to install. For example like Happy, I got the following error: cabal install happy Resolving dependencies... <command line>: cannot satisfy -package Cabal-1.10.1.0: Cabal-1.10.1.0-64e8f05722ea5bbdf07df2e5a3491105 is unusable due to missing or recursive dependencies: directory-1.1.0.0-85d1d0f9d96dffdacf64f3cc6fba6f2f process-1.0.1.5-4cab1bf0666275ac101dd48c7565b64c (use -v for more information) cabal: Error: some packages failed to install: happy-1.18.6 failed during the configure step. The exception was: ExitFailure 1 Besides happy package, some other packages like ghc-mod, hmatrix also failed to install. Does anyone else have the same issue after installed ghc 7.0.2? By the way, does anyone hear anything about Haskell-platform 2011.2 ? Thanks! -- Qi Qi

What does "ghc-pkg list" and "ghc-pkg check" say? Cabal-1.10.1.0, directory-1.1.0.0 and process-1.0.1.5 should be there after installation of GHC 7.0.2. (I've actually installed cabal-install-0.10.0 using an older cabal, but that does not work on macs and may not be the recommended way.) I think I've used http://www.galois.com/~dons/code/2011.2.0.0/haskell-platform-2011.2.0.0.tar.... from http://www.galois.com/~dons/code/2011.2.0.0/, but they are not official yet. C. Am 08.03.2011 19:20, schrieb Qi Qi:
Hi,
After I installed GHC 7.0.2 and cabal-install 0.10.0 using Cabal library 1.10.1, I found that some package failed to install. For example like Happy, I got the following error:
cabal install happy Resolving dependencies... <command line>: cannot satisfy -package Cabal-1.10.1.0: Cabal-1.10.1.0-64e8f05722ea5bbdf07df2e5a3491105 is unusable due to missing or recursive dependencies: directory-1.1.0.0-85d1d0f9d96dffdacf64f3cc6fba6f2f process-1.0.1.5-4cab1bf0666275ac101dd48c7565b64c (use -v for more information) cabal: Error: some packages failed to install: happy-1.18.6 failed during the configure step. The exception was: ExitFailure 1
Besides happy package, some other packages like ghc-mod, hmatrix also failed to install. Does anyone else have the same issue after installed ghc 7.0.2?
By the way, does anyone hear anything about Haskell-platform 2011.2 ?
Thanks!

ghc-pkg list returns these:
>>>>>>>>>>>>>>>>>>>>>>>>>
/usr/local/lib/ghc-7.0.2/package.conf.d:
Cabal-1.10.1.0
array-0.3.0.2
base-4.3.1.0
bin-package-db-0.0.0.0
bytestring-0.9.1.10
containers-0.4.0.0
directory-1.1.0.0
extensible-exceptions-0.1.1.2
ffi-1.0
filepath-1.2.0.0
(ghc-7.0.2)
(ghc-binary-0.5.0.2)
ghc-prim-0.2.0.0
(haskell2010-1.0.0.0)
haskell98-1.1.0.1
hpc-0.5.0.6
integer-gmp-0.2.0.3
old-locale-1.0.0.2
old-time-1.0.0.6
pretty-1.0.1.2
process-1.0.1.5
random-1.0.0.3
rts-1.0
template-haskell-2.5.0.0
time-1.2.0.3
unix-2.4.2.0
/home/qi/.ghc/i386-linux-7.0.2/package.conf.d:
HTTP-4000.1.1
QuickCheck-2.4.0.1
X11-1.5.0.0
X11-xft-0.3
binary-0.5.0.2
containers-0.3.0.0
cpphs-1.11
directory-1.1.0.0
filepath-1.1.0.4
haskell98-1.1.0.1
hinotify-0.3.1
hscolour-1.17
language-c-0.3.2.1
mtl-1.1.1.1
mtl-2.0.1.0
{network-2.2.1.10}
network-2.3.0.2
parsec-2.1.0.1
parsec-3.1.1
primitive-0.3.1
process-1.0.1.5
stm-2.2.0.1
storable-complex-0.2.1
syb-0.3
transformers-0.2.2.0
uniplate-1.6
utf8-string-0.3.6
vector-0.7.0.1
xmonad-0.9.2
xmonad-contrib-0.9.2
zlib-0.5.3.1
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ghc-pkg check returns this:
There are problems in package network-2.2.1.10:
dependency "parsec-3.1.1-583092e3fd1a17b79365b197467a185d" doesn't exist
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
network-2.2.1.10
I installed parsec and network via cabal. Do you know how can I remove
network-2.2.1.10 that is not needed because a higher version exists.
Should I delete anything under ~/.ghc and ~/.cabal, and reinstall ghc
and cabal-install, and those pacakges installed before using cabal?
Thanks for your link of the Haskell-platform. I will wait for the
official release and hope it will be soon.
Christian Maeder
What does "ghc-pkg list" and "ghc-pkg check" say?
Cabal-1.10.1.0, directory-1.1.0.0 and process-1.0.1.5 should be there after installation of GHC 7.0.2. (I've actually installed cabal-install-0.10.0 using an older cabal, but that does not work on macs and may not be the recommended way.)
I think I've used http://www.galois.com/~dons/code/2011.2.0.0/haskell-platform-2011.2.0.0.tar.... from http://www.galois.com/~dons/code/2011.2.0.0/, but they are not official yet.
C.
Am 08.03.2011 19:20, schrieb Qi Qi:
Hi,
After I installed GHC 7.0.2 and cabal-install 0.10.0 using Cabal library 1.10.1, I found that some package failed to install. For example like Happy, I got the following error:
cabal install happy Resolving dependencies... <command line>: cannot satisfy -package Cabal-1.10.1.0: Cabal-1.10.1.0-64e8f05722ea5bbdf07df2e5a3491105 is unusable due to missing or recursive dependencies: directory-1.1.0.0-85d1d0f9d96dffdacf64f3cc6fba6f2f process-1.0.1.5-4cab1bf0666275ac101dd48c7565b64c (use -v for more information) cabal: Error: some packages failed to install: happy-1.18.6 failed during the configure step. The exception was: ExitFailure 1
Besides happy package, some other packages like ghc-mod, hmatrix also failed to install. Does anyone else have the same issue after installed ghc 7.0.2?
By the way, does anyone hear anything about Haskell-platform 2011.2 ?
Thanks!
-- Qi Qi

On Wednesday 09 March 2011 11:42:48, Qi Qi wrote:
ghc-pkg check returns this:
There are problems in package network-2.2.1.10: dependency "parsec-3.1.1-583092e3fd1a17b79365b197467a185d" doesn't exist
Seems parsec-3.1.1 was rebuilt after network-2.2.1.10 was installed. Any idea what package caused that?
The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. network-2.2.1.10
I installed parsec and network via cabal. Do you know how can I remove network-2.2.1.10 that is not needed because a higher version exists.
Try $ ghc-pkg unregister network-2.2.1.10 If ghc-pkg says that would break other packages (it shouldn't, if it would, those should have been reported too), you could unregister them first (or use --force) (and reinstall them afterwards).
Should I delete anything under ~/.ghc and ~/.cabal, and reinstall ghc and cabal-install, and those pacakges installed before using cabal?
Not as a first measure, while breakage is small, ghc-pkg unregister tends to be less work. Only if you have lots of breakage would I recommend deleting the local package db.
Thanks for your link of the Haskell-platform. I will wait for the official release and hope it will be soon.
Should be only a couple of days, iirc.

Thank you! I fixed the broken package, network-2.2.1.10 by manually removing it locally and recache the ghc's package cache by running ghc-pkg recache. Thanks though for the unregister option. Now ghc-pkg check doesn't return any broken packages. But Cabal seems still got problem. I got the same cabal problem when I tried to test with the haskell-platform 2011-2. I have post another with that regard. -- View this message in context: http://haskell.1045720.n5.nabble.com/have-anyone-tried-GHC-7-0-2-tp3413510p3... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

The problem is solved! I found out that both global and local package db get directory-1.1.0.0 and process-1.0.1.5. I unregistered them and other caused broken packages in the local package db. Then I successfully installed back hmatrix, ghc-mod, happy and etc. It seems that xmobar will install directory-1.1.0.0 again in the local package db. Thank you all who replied this threading! -- View this message in context: http://haskell.1045720.n5.nabble.com/have-anyone-tried-GHC-7-0-2-tp3413510p3... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
participants (4)
-
Christian Maeder
-
Daniel Fischer
-
Qi Qi
-
qiqi