How to install Haskel and Cabal on CentOS 5.4 given the versions of glibc and the version of linux.

  • Download Gist
Installing Haskell and Cabal on CentOS 5.4.md
Markdown

Adopted from this post

Install libedit

sudo yum install libtermcap-devel
export LIBEDIT_VERSION=0.3
curl -LOk http://jaist.dl.sourceforge.net/sourceforge/libedit/libedit-$LIBEDIT_VERSION.tar.gz
tar -zxf libedit-0.3.tar.gz
cd libedit
CFLAGS='-g -O2 -fPIC' ./configure --prefix=/usr
make
sudo make install
sudo ln -s /usr/lib/libedit.so /usr/lib/libedit.so.0
sudo /sbin/ldconfig
cd ~

Install GHC version 6.10.2 (has to be this version)

export GHC_VERSION=6.10.2
export GHC_ARCH=`uname -p`
curl -LOk http://haskell.org/ghc/dist/$GHC_VERSION/ghc-$GHC_VERSION-$GHC_ARCH-unknown-linux.tar.bz2
bunzip2 ghc-6.10.2-x86_64-unknown-linux.tar.bz2
tar -xf ghc-6.10.2-x86_64-unknown-linux.tar
cd ghc-6.10.2
./configure
sudo make install
cd ~

Install Haskel Platform (again has to be this version)

sudo yum install gmp gmp-devel freeglut freeglut-devel libX11-devel mesa-libGLU-devel zlib-devel
curl -LOk http://hackage.haskell.org/platform/2009.2.0/haskell-platform-2009.2.0.tar.gz
tar -zxf haskell-platform-2009.2.0.tar.gz 
cd haskell-platform-2009.2.0
./configure
make
sudo make install
cabal update
cabal install cabal-install  # because cabal update says so.

Install pandoc, because that's what motivated this whole exercise

cabal install --global pandoc

Last download fails as it has moved from haskell's site. :( Does anyone have a replacement?
for http://hackage.haskell.org/platform/2009.2.0/haskell-platform-2009.2.0.tar.gz

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.