如何在尝试制作haskell-platform时修复错误2?

Die*_*Saa 8 ubuntu haskell haskell-platform

我下载了哈斯克尔平台的源从这里:http://www.haskell.org/platform/linux.html,安装GHC和/.configure做到了.但是,当我做sudo make时,我收到以下错误:

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
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

我正在尝试在Ubuntu 12.04.1 LTS上安装

Ped*_*ano 8

而不是尝试从源代码安装,只需安装Ubuntu软件包,这将更简单,具有:

  $ sudo apt-get install haskell-platform
Run Code Online (Sandbox Code Playgroud)

如果您需要本地版本的文档和分析库,请安装其他软件包:

  $ sudo apt-get install haskell-platform-doc haskell-platform-prof
Run Code Online (Sandbox Code Playgroud)


GCl*_*unt 5

Daniel Fisher的评论让我得到了解决方案.您必须为已安装的每个ghc软件包安装所有分析库.写吧

sudo apt-get install ghc*-prof
Run Code Online (Sandbox Code Playgroud)

这就是它对我有用的方式