I just went through a bit of a frustrating time getting cabal (the Haskell package management system) going on a fresh Ubuntu install. (Figuring out I needed to install the zlib package mentioned in step three below was the worst of it).
I thought I’d document the steps I went through in case I ever need to do it again:
- Install GHC.
sudo apt-get install ghc
- Download and extract the cabal installation tool: cabal-install-0.6.2.tar.gz. (This page will probably keep an up-to-date link for future versions).
-
Make sure this zlib package is installed:
sudo apt-get install zlib1g-dev
- Run the bootstrap.sh shell script extracted in step two.
- Either add ~/.cabal/bin to your $PATH or copy it to a $PATH location.
The Cabal-Install instruction page is located here.
Rob Dickerson's blog (or "macro-tweeting service") on programming, math, fencing, technology, and life in general.