After I installed GHC-6.12.1, the cabal-install program could not works normally.

$ sudo cabal install
cabal: failed to parse output of 'ghc-pkg dump'
$

please help me.