Permalink
Browse files

Update install instructions.

  • Loading branch information...
1 parent 1e5c8ba commit 2961e514f640b76aaaa7a6bccdb7ed3f2a429619 @23Skidoo committed May 31, 2012
Showing with 48 additions and 31 deletions.
  1. +48 −31 README
View
79 README
@@ -3,54 +3,71 @@ Windows installer for the Haskell Platform.
How to make an installer
------------------------
-0. Install GHC, msys, nsis and darcs (http://wiki.darcs.net/Binaries).
- Make sure that you have the special build of nsis with large strings support.
+0. Install the prerequisites: ActivePerl, Python, MSYS and NSIS.
+ Install GHC.
+ Make sure that you have the special build of NSIS with large strings support.
Add $GHCDIR/mingw/bin to PATH.
1. Manually install cabal-install's dependencies: zlib, transformers,
- mtl, parsec, network, HTTP (in this order). Make sure to use appropriate
- versions (see haskell-platform.cabal).
-
- (That is: download/unpack the .tar.gz, runghc Setup.hs
- configure -p/build/install; or use ghc-install.sh).
-
-2. Manually install cabal-install
-
-3. cabal update
- cabal install alex-$ALEX_VERSION happy-$HAPPY_VERSION
-
-4. darcs get --lazy http://code.haskell.org/haskell-platform/
-
-5. cd haskell-platform && cabal install
-
- Make sure that you have library-profiling set to True and user-install set to
- False in $APPDATA/cabal/config.
-
- Make sure that you have glut.h and libglut32.a in $GHCDIR/mingw/{include/GL,lib}.
+ mtl, text, parsec, network, HTTP, random (in this order). Make sure
+ to use appropriate versions (see haskell-platform.cabal).
+
+ To install libraries manually:
+ $ wget http://...$PACKAGE.tar.gz
+ $ tar xzf $PACKAGE.tar.gz
+ $ cd $PACKAGE
+ $ ghc-install.sh
+
+2. Manually install cabal-install:
+ $ wget http://...cabal-install-$VERSION.tar.gz
+ $ tar xzf cabal-install-$VERSION.tar.gz
+ $ cd cabal-install-$VERSION
+ $ runghc Setup.hs configure
+ $ runghc Setup.hs build
+ $ runghc Setup.hs install
+
+3. $ cabal update
+
+4. $ git clone https://github.com/haskell/haskell-platform.git
+ $ cd haskell-platform
+ $ git checkout pre-release
+
+5. Make sure that you have 'library-profiling' set to True, 'user-install' set to
+ False and 'documentation' set to True in $APPDATA/cabal/config.
+
+ Make sure that you have glut.h and libglut32.a in $GHCDIR/mingw/{include/GL,lib}
+ (can be copied from the previous Platform files).
+
+ In the haskell-platform directory:
+ $ cabal install
+ $ cabal install alex-$ALEX_VERSION happy-$HAPPY_VERSION
6. Move all stuff from $PROGRAMFILES/Haskell/{bin,lib} to
$GHCDIR/{lib/extralibs/bin,lib/extralibs}.
7. Run recache.py (editing it beforehand to fix the paths).
- Run 'ghc-pkg check' to check that 'recache.py' caused no problems.
+ Run ghc-pkg recache.
+ Run 'ghc-pkg check' to check that recaching caused no problems.
+
+8. Go to $GHCDIR/doc/html/libraries and run $THISDIR/haddock-gen-index.py
-8. Copy $GHCDIR to $THISDIR/files & uninstall GHC.
+9. Copy the contents of $GHCDIR to $THISDIR/files & uninstall GHC.
Don't forget to remove unins000.dat and unins000.exe from $THISDIR/files.
-9. Build winghci & put it into $THISDIR/files/winghci.
+10. Build winghci & put it into $THISDIR/files/winghci.
- Don't forget the runtime library (depends on the Visual Studio version:
- e.g. for MSVC 9 it's msvcr900.dll, can be checked with dependency walker).
+ Don't forget the runtime library (depends on the Visual Studio version:
+ e.g. for MSVC 9 it's msvcr900.dll, can be checked with dependency walker).
-10. Update GHC_VERSION and PLATFORM_VERSION variables in Nsisfile.nsi.
+11. Update GHC_VERSION and PLATFORM_VERSION variables in Nsisfile.nsi.
-11. Copy $THISDIR/icons/*.ico to $THISDIR/files/icons
+12. Copy $THISDIR/icons/*.ico to $THISDIR/files/icons
-12. gen_files_for_nsis.py files inst.dat uninst.dat
+13. gen_files_for_nsis.py files inst.dat uninst.dat
-13. Build the installer (right-click Nsisfile.nsi -> Compile NSIS Script).
+14. Build the installer (right-click Nsisfile.nsi -> Compile NSIS Script).
-14. Test the installer.
+15. Test the installer.
I usually check that regex-posix and glut work.

0 comments on commit 2961e51

Please sign in to comment.