9

Trying to follow the solution proposed in the answer to reducing haskell's binary question, I keep getting the error, when I install with --enable-shared option:

> cabal install opengl --enable-shared --reinstall   
...
Could not find module `Prelude' 
Perhaps you haven't installed the "dyn" libraries for package `base'?

Tried everything. I'm using apt-get installedhaskell-platform (with ghc 7.4.1), on Ubuntu 12.04, 64bit.

ANY tips?

4

1 回答 1

10

似乎 Ubuntu 的 Haskell 平台不包含动态库。

您可以尝试安装ghc-dynamic,这应该可以,我假设发行版打包者知道他们在做什么。您可能还需要为平台中包含的几个库安装 *-dynamic 包。

如果它不起作用,我可以提出的唯一建议是自己从源代码编译 GHC(使用已安装的 GHC),或者使用带有动态库的 vanilla GHC bindist,据我所知。

不过,两者都需要重新安装(包括重新编译)库(也许最好从源代码编译 vanilla平台),所以我建议先尝试分发包。

于 2012-07-29T17:44:44.830 回答