我遵循http://sporkcode.wordpress.com/2009/07/11/installing-the-haskell-platform-in-ubuntu/关于在Ubuntu中安装GHC的说明。我想把它安装在我的主目录中。我已经成功地安装了GHC,但是当我尝试安装Haskell平台时,配置脚本会抱怨GHC无法工作。这是因为ld找不到安装在~/lib中的GMP库,而且GHC似乎没有将LDPATH或LD_LIBRARY_PATH传递给ld。有什么建议吗?
发布于 2011-12-26 14:40:22
您可以向haskell-platform的./配置发出一个参数
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 --helphttps://serverfault.com/questions/191843
复制相似问题