Installing λPage

elbrujohalcon edited this page Aug 23, 2010 · 66 revisions
Clone this wiki locally

Installing λPage from Cabal

OSX

  1. Install WxWidgets 2.8.10 for Mac
  2. Install The Haskell Platform
    If you have OSX Leopard, due to this bug, you’ll need to compile it from sources
  3. Update cabal sources:
    cabal update
  4. Install hpage using Cabal:
    cabal install hpage
  5. Before opening hpage.app directly (i.e. NOT from a Terminal) verify that cabal is in your path (for example, by adding its path to this property list file)

Linux (Ubuntu Lucid Lynx)

  1. Install WxWidgets 2.8.10 for GTK+:
    sudo apt-get install wx-common libwxbase2.8-0 libwxbase2.8-dev wx2.8-doc gettext
    sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev
  2. Install ghc-6.12.1:
    sudo apt-get install ghc6 ghc6-prof ghc6-doc haddock haskell-doc
  3. Install packages needed to compile The Haskell Platform:
    sudo apt-get install libghc6-opengl-dev libghc6-zlib-dev libghc6-glut-dev libghc6-opengl-prof libghc6-zlib-prof libghc6-glut-prof
  4. Download and unpack version 2010.1.0.0 of The Haskell Platform:
    wget http://hackage.haskell.org/platform/2010.1.0.0/haskell-platform-2010.1.0.0.tar.gz
    tar -xzf haskell-platform-2010.1.0.0.tar.gz
  5. Install it:
    cd haskell-platform-2010.1.0.0
    ./configure
    make
    sudo make install
  6. Make sure than ~/.cabal/bin is in your path
    export PATH=~/.cabal/bin:$PATH
  7. Update cabal sources:
    cabal update
  8. Install hpage using Cabal:
    cabal install hpage

Windows

Some of these instructions are taken from here because they’re just needed to install wxHaskell properly

  1. Install WxWidgets 2.8.10 for MSW
  2. Download wx-config for Windows and place it in the $PATH
  3. Go to Start menu→Control Panel→System→Advanced→Environment Variables
    – Click New, setting Variable name to WXWIN and Variable value to where you have wxWidgets installed (ie. c:\wxWidgets-2.8.10).
    – Click New, setting Variable name to WXCFG and Variable value to gcc_dll/mswu
  4. Install MinGW (with gcc support)
  5. Install MSYS
  6. Using the MSYS shell, run:
    $ cd /c/path/to/wxWidgets-2.8.10/build/msw
    $ mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=1 UNICODE=1
    A DLL is generated in /c/path/to/wxWidgets/gcc_dll, which you will need to copy to a location where it can be found when running your executables (i.e. something like c:\WINDOWS\system32 in XP)
  7. If you have Windows XP, install C++ 2008 SP1 from MicroSoft
  8. Install The Haskell Platform
    If you have Windows 7, you’ll need to workaround this bug, as Jeremy explains in order to get the application running
  9. Update cabal sources:
    cabal update
  10. Install hpage using Cabal:
    cabal install hpage