Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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
1  
You can search for file names locally as well: apt-cache search bin/ghc – Gilles Oct 27 '11 at 21:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.