How to fix Error 2 when trying to make haskell-platform?
haskell, haskell-platform, ubuntu
Solution
Instead of trying to install from the sources, simply install the Ubuntu packages, which will be much simpler, with:
$ sudo apt-get install haskell-platform
If you need a local version of the documentation and the profiling libraries, install the additional packages with:
$ sudo apt-get install haskell-platform-doc haskell-platform-prof
Problem
I downloaded the Haskell-platform source from here: http://www.haskell.org/platform/linux.html, installed ghc, and did /.configure. However when I do sudo make, I get the following error: ``` Preprocessing library HUnit-1.2.4.2... Test/HUnit/Base.hs:1:1: Could not find module `Prelude' Perhaps you haven't installed the profiling libraries for package `base'? Use -v to see a list of the files searched for. Error: Building the HUnit-1.2.4.2 package failed make: *** [build.stamp] Error 2 ``` Does anyone knows how to fix this? I'm trying to install on Ubuntu 12.04.1 LTS