Posts Tagged ‘Add new tag’

Installing Cabal on Ubuntu Hardy

Monday, March 16th, 2009

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:

  1. Install GHC.
    sudo apt-get install ghc
  2. 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).
  3. Make sure this zlib package is installed:

    sudo apt-get install zlib1g-dev
  4. Run the bootstrap.sh shell script extracted in step two.
  5. Either add ~/.cabal/bin to your $PATH or copy it to a $PATH location.

The Cabal-Install instruction page is located here.