Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
./configure
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.
256

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 http://www.haskell.org/ghc/download_ghc_7_6_3

share|improve this question
1  
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
1  
Is GHC written in Haskell itself? –  ThePiercingPrince Jul 10 '13 at 11:11
1  
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
add comment

1 Answer 1

up vote 6 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
2  
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
add comment

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.