Joe Edmonds Blog
   

Email

Subscribe
RSS

My Other Pages



       
Thu, 05 Mar 2009

The procedure I followed to get ghc 6.10, cabal-install, and happs-tutorial 0.6.5 working in ubuntu 8.10 (intrepid) or ubuntu 8.04 (hardy)

userbin=$HOME/bin
PATH="$userbin:$PATH"

cat <<EOF >~/bin/cabal-install-this
#!/bin/sh
setup="\$1"
runhaskell \$setup configure --prefix=$HOME --user &&
runhaskell \$setup build &&
runhaskell \$setup install --user
EOF
chmod a+x ~/bin/cabal-install-this

sudo apt-get install libgmp3c2 gcc libc6-dev g++ zlib1g-dev libgmp3-dev darcs

wget http://www.haskell.org/ghc/dist/6.10.1/ghc-6.10.1-i386-unknown-linux-libedit2.tar.bz2
tar jxvf ghc-6.10.1-i386-unknown-linux-libedit2.tar.bz2
pushd ghc-6.10.1
./configure
sudo make install  # installs in /usr/local/ by default
popd

httpv=4000.0.4
wget http://hackage.haskell.org/packages/archive/HTTP/$httpv/HTTP-$httpv.tar.gz
tar zxvf HTTP-$httpv.tar.gz
pushd HTTP-$httpv/
cabal-install-this Setup.lhs 
popd

wget http://hackage.haskell.org/packages/archive/zlib/0.5.0.0/zlib-0.5.0.0.tar.gz
tar zxvf zlib-0.5.0.0.tar.gz 
pushd zlib-0.5.0.0/
cabal-install-this Setup.hs 
popd

cryptov=4.2.0
wget http://hackage.haskell.org/packages/archive/Crypto/$cryptov/Crypto-$cryptov.tar.gz
tar zxvf Crypto-$cryptov.tar.gz 
pushd Crypto-$cryptov/
cabal-install-this Setup.hs
popd

darcs get http://darcs.haskell.org/cabal-install/
pushd cabal-install
cabal-install-this Setup.hs
popd

cabal update
cabal install happs-tutorial
happs-tutorial 5001 True True

[] permanent link

A rough outline of the procedure I followed to get orchid-demo 0.0.4 working in ubuntu 8.10
First, see previous instructions to install cabal. Then:

sudo apt-get install libssl-dev

cabal install orchid-demo

orchid-demo --extract

w3m -dump http://localhost:8080/

[] permanent link