我最近买了一台笔记本电脑并在上面安装了 Xubuntu 13.10。今天,我重新安装了它,因为我无法让 GHC 运行它。我做了 apt-get 更新和升级,以及安装 linux-headers-generic 和安装 bcmwl-kernel-source。
我就是这样进行的:
从以下网址下载 GHC: https ://www.haskell.org/ghc/download_ghc_7_6_3#x86_64linux
tar xjf ghc-7.6.3......
cd ghc-7.6.3
./configure
这里他不配置,所以我要下载libgmp.so.3并安装
sudo make install
GHC 安装正确。
现在我尝试用 ghci 运行它并得到一个缺少 libgmp.so 的错误。我也下载并安装。都使用 ubuntu 软件中心和来自 pkgs.com
现在我运行 ghci。它工作正常。我尝试:
import Control.Monad.Error
我真正的问题从这里开始:
<no location info>:
Could not find module `Control.Monad.Error'
Perhaps you meant
Control.Monad.Fix (from base)
Control.Monad.ST (from base)
Control.Monad.Zip (from base)
我不知道为什么会这样。我可以轻松做到:显然
:m +Control.Monad
这给出了: Prelude Control.Monad> 但不能出错。据我了解,这个库本身带有 GHC,但我下载并安装它以防万一使用: sudo apt-get install libghc-mtl-dev
但它仍然没有工作。我需要帮助来完成这项工作,或者通常设置haskell。