Changeset 17064 for INSTALL

Show
Ignore:
Timestamp:
07/15/07 22:55:08 (17 months ago)
Author:
rhr
Message:

[INSTALL] Instructions for installing new GHC on Debian etch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • INSTALL

    r16461 r17064  
    55------------- 
    66 
    7 Pugs needs the Glasgow Haskell Compiler (GHC), version 6.6 or above. 
     7Pugs needs the Glasgow Haskell Compiler (GHC), version 6.6.1 or above. 
    88 
    99To install GHC, download a binary build from http://haskell.org/ghc/. 
     
    1919Pugs by hand, http://wiki.kn.vutbr.cz/mj/?Perl%206%20and%20Parrot has some 
    2020instructions. 
     21 
     22Debian etch's (stable as of 2007) version of GHC is too old to compile pugs, 
     23see the section below on compiling the version from testing.  GHC 6.6.1 debs 
     24for etch are available at http://airen.bcm.umontreal.ca/ghc-pugs-etch/ 
     25(not apt-gettable, amd64 only at present but other archs may be added). 
    2126 
    2227For dynamic loading/inlining of Haskell modules, you should install the 
     
    145150at the moment, to avoid a dependency on the full parser. 
    146151 
     152 
     153COMPILING GHC ON DEBIAN ETCH 
     154---------------------------- 
     155 
     156This is a somewhat tricky procedure at present, because installing a new ghc may 
     157make old libghc6-* packages uninstallable.  The following procedure should work 
     158around that, but be warned it hasn't been tested in exactly this way.  Complain 
     159on #perl6 if you have trouble.  -rhr 
     160 
     1611. Compile the new version of GHC from testing: 
     162    echo 'deb-src ftp://ftp.debian.org/debian/ lenny main contrib non-free' >> /etc/apt/sources.list 
     163    apt-get update 
     164    apt-get build-dep ghc6 
     165    apt-get source --compile ghc6 
     166    Don't install the debs yet! 
     1672. Remove old GHC packages 
     168    dpkg --get-selections|grep ghc 
     169    Check to see what you'll need to reinstall later 
     170    dpkg --get-selections|grep ghc|awk '$2 == "install" {print $1}'|xargs apt-get remove 
     171    dpkg --get-selections|grep libghc 
     172    Make sure no libghc6-* packages are installed 
     1733. Install new GHC 
     174    dpkg -i ghc6_6.6.1-*.deb 
     1754. Satisfy build-deps for GHC libs 
     176    dpkg -i ghc6-doc_6.6.1-*.deb 
     177    apt-get build-dep haddock 
     178    apt-get source --compile haddock 
     179    dpkg -i haddock*.deb 
     180    apt-get build-dep haskell-utils 
     181    apt-get source --compile haskell-utils 
     182    dpkg -i haskell-utils*.deb 
     183    apt-get build-dep libghc6-mtl-dev libghc6-network-dev libghc6-time-dev 
     1845. Build and install GHC libs 
     185    apt-get source --compile libghc6-mtl-dev 
     186    dpkg -i libghc6-mtl-dev*.deb 
     187    apt-get source --compile libghc6-network-dev 
     188    dpkg -i libghc6-network-dev*.deb 
     189    apt-get source --compile libghc6-time-dev 
     190    dpkg -i libghc6-time-dev*.deb