在我的Centos 6.6上安装ghc之前,我用centos repo打印了可用的ghc,
yum --showduplicates list ghc | expand
得到了,
ghc.x86_64 7.0.4-46.el6 epel
但是由于7.0.4已经过时了,我从haskell-downloads下载了ghc-7.8.4-x86_64-unknown-linux-centos65.tar
并完成了./configure && make install
。
它给出了错误,
Configuring ghc-prim-0.3.1.0...
ghc-cabal: Cannot find the program 'ghc' at
'/root/ghc-7.8.4/inplace/bin/ghc-stage1' or on the path
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2