我从这里下载了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有人知道怎么解决这个问题吗?
我正在尝试安装在Ubuntu 12.04.1 LTS上
发布于 2012-10-25 05:38:26
不要试图从源代码安装,只需安装Ubuntu包,这会更简单,使用以下命令:
$ sudo apt-get install haskell-platform如果您需要文档和性能分析库的本地版本,请使用以下命令安装其他软件包:
$ sudo apt-get install haskell-platform-doc haskell-platform-prof发布于 2013-04-09 20:51:21
Daniel Fisher的评论引导我找到了解决方案。您必须为已安装的每个ghc包安装所有分析库。只需写
sudo apt-get install ghc*-prof这就是我的工作方式
https://stackoverflow.com/questions/13057254
复制相似问题