Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... no
configure: error: GHC is required unless bootstrapping from .hc files.

I want to install Glasgow Haskell Compiler, and ./configure asks for GHC. What kind of GHC is it asking for? Global Hadron Collider? I downloaded the source from

share|improve this question
Unless you have a specific reason to use a different version its much easier to get it from the software centre or apt-get as already answered by karel. If you do want to install from source provide a link to where you got it from. – Warren Hill Jul 10 '13 at 11:07
Is GHC written in Haskell itself? – ThePiercingPrince Jul 10 '13 at 11:11
It's common practice to write compilers in the language they are supposed to compile. I can only speculate, but I guess this is to show self consistency, by being able to compile the compiler with itself. – soulsource Jul 10 '13 at 12:44
Yes, it is written in Haskell. – ThePiercingPrince Jul 12 '13 at 12:32
up vote 7 down vote accepted

From the Ubuntu Software Center description of ghc:

"The Glasgow Haskell Compilation system (GHC) is a compiler for Haskell."

To install ghc search for ghc in the Ubuntu Software Center, or open the terminal and type:

sudo apt-get install ghc
share|improve this answer
Where is the source of that package? – ThePiercingPrince Jul 10 '13 at 11:10
If by "source" you mean Software Source, ghc is from the universe repository. To enable the universe repository, open the Ubuntu Software Center and browse to Edit -> Software Sources -> Ubuntu Software tab, and make sure there is a check mark next to the second software source in the list which is the universe repository. – karel Jul 10 '13 at 11:19
No, I mean the source code of it. – ThePiercingPrince Jul 10 '13 at 11:26
Enable Source code in the Ubuntu Software Center's Software Sources. It is the last software source in the list. Open the terminal and type: cd ~/Desktop (in order to download the source code to your Desktop) and then type sudo apt-get source ghc. This will download 4 different files to your Desktop. – karel Jul 10 '13 at 11:38

Your Answer


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.