Take the tour ×

I've just installed cabal to try and get http://dmwit.com/yeganesh/, but on running cabal-install it throws the error:

cabal: ghc version >=6.4 is required but it could not be found.

Apt-cache searching ghc returns literally hundreds of packages, which one do I need?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You need the one called exactly ghc.

You can add the --names-only option to apt-cache search to limit your results; it prevents it from returning a positive result for packages that only mention ghc in the description. If that fails, I go to the package search page on the distro website where I can search for filenames instead of package names.

share|improve this answer
You can search for file names locally as well: apt-cache search bin/ghc –  Gilles Oct 27 '11 at 21:26
add comment

Your Answer


