#在CentOS7_64上安装Haskell 解释器 GHC
下载GHC Download
# wget https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-centos67-linux.tar.xz
解压
#tar xvJf ghc-8.0.2-x86_64-centos67-linux.tar.xz
##编译,安装
#cd ghc-8.0.2
#./configure
#make
#make install
如果报错找不到libgmp.so.3,如下操作安装:
安装libgmp.so.3
-
输入libgmp.so.3()(64bit)查找
-
找到 这一行
lib64gmp3-4.3.1-1mdv2010.0.x86_64.html A GNU arbitrary precision library Mandriva 2010.0 for x86_64 lib64gmp3-4.3.1-1mdv2010.0.x86_64.rpm
4.下载,安装
#wget ftp://195.220.108.108/linux/Mandriva/official/2010.0/x86_64/media/main/release/lib64gmp3-4.3.1-1mdv2010.0.x86_64.rpm
#rpm -ivh lib64gmp3-4.3.1-1mdv2010.0.x86_64.rpm
5.完成后验证
#cd /usr/lib64
#ls | grep libgmp