我正在按照http://sporkcode.wordpress.com/2009/07/11/installing-the-haskell-platform-in-ubuntu/的说明在Ubuntu中安装GHC。 我想将它安装在我的主目录中。 我已经成功安装了GHC,但是当我尝试安装Haskell平台时,configure脚本抱怨GHC不起作用。 这是因为ld无法find安装在〜/ lib中的GMP库,GHC似乎没有将LDPATH或LD_LIBRARY_PATH传递给ld。 build议?
您可以向haskell-platform的./configure发出一个参数
Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-ghc=ARG Use ARG as the path to ghc [default=autodetect] --with-ghc-pkg=ARG Use ARG as the path to ghc-pkg [default=autodetect] --with-hsc2hs=ARG Use ARG as the path to hsc2hs [default=autodetect]
其中一个是你在找什么? 要看到所有可用的选项
./configure --help