1

我正在尝试将 haskell-platform-2011.2.0.1 安装到我的 suse 11.4 上。我已经获得了 ./configure 所需的所有依赖项,并且工作正常。但是在“制作”时,它会产生这个错误

scripts/build.sh
**************************************************
Scanning system for any installed Haskell Platform components...

Found:None.

New packages to install: None! All done.

**************************************************
Building transformers-0.2.2.0
"/usr/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal"
Linking Setup ...
"./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/usr/local" "--with-compiler=/usr/bin/ghc" "--with-hc-pkg=/usr/bin/ghc-pkg" "--with-hsc2hs=/usr/bin/hsc2hs" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
Configuring transformers-0.2.2.0...
"./Setup" "build"
Preprocessing library transformers-0.2.2.0...
Building transformers-0.2.2.0...

Control/Monad/IO/Class.hs:19:7:
    Could not find module `System.IO':
      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 transformers-0.2.2.0 package failed
make: *** [build.stamp] Error 2

我用谷歌搜索,但似乎没有一个有正确的解决方案。如何安装缺少的“System.IO”模块?

4

1 回答 1

0

作为记录,问题很可能是用于构建的 ghc 包没有包含分析库。

于 2018-02-07T05:29:42.540 回答