X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=inline;f=ghc%2Fdocs%2Fusers_guide%2Finstalling.sgml;h=fdfb0782aaaae791573d73a73c52cce769b27b48;hb=9e6162f9d0102d1f5738bf78258b24ea5a647ea4;hp=fae2d0079ebe3abb25562e7b152bd777068b9584;hpb=d8e9ec6f40f40d3d70273d38dfcddb80e58e1a76;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/installing.sgml b/ghc/docs/users_guide/installing.sgml index fae2d00..fdfb078 100644 --- a/ghc/docs/users_guide/installing.sgml +++ b/ghc/docs/users_guide/installing.sgml @@ -234,13 +234,6 @@ contains HTML documentation files (one sub-directory per project). - -man/ - - -contains Unix manual pages. - - @@ -248,10 +241,11 @@ contains Unix manual pages. Installing -OK, so let's assume that you have unpacked your chosen bundles into a -scratch directory fptools. What next? Well, you will at least need -to run the configureconfigure script by changing your -directory to fptools and typing ./configure. That should convert +OK, so let's assume that you have unpacked your chosen bundles. What +next? Well, you will at least need to run the +configureconfigure +script by changing directory into the top-level directory for the +bundle and typing ./configure. That should convert Makefile.in to Makefile. @@ -270,7 +264,7 @@ follow. -To install an fptools package, you'll have to do the following: +To install a package, you'll have to do the following: @@ -709,22 +703,23 @@ the implementation. GHC is installed in two directory trees: -Binary directory - known as $(bindir), holds executables that -the user is expected to invoke. Notably, -ghc and ghci. On Unix, this directory -is typically something like /usr/local/bin. On Windows, -however, this directory is always $(libdir)/bin. - - - - Library directory, known as $(libdir), holds all the support files needed to run GHC. On Unix, this directory is usually something like /usr/lib/ghc/ghc-5.02. + +Binary directory + known as $(bindir), holds executables that +the user is expected to invoke. +Notably, it contains +ghc and ghci. On Unix, this directory +can be anywhere, but is typically something like /usr/local/bin. On Windows, +however, this directory must be $(libdir)/bin. + + + @@ -746,14 +741,41 @@ one wins.] On Windows (but not Unix), if no flag is given, GHC uses a system call to find the directory in which the running GHC executable lives, and derives $(libdir) from that. [Unix lacks such a system call.] +That is why $(bindir) must be $(libdir)/bin. - Layout of the library directory + The binary directory -The layout of the library directory is almost identical on -Windows and Unix, as follows: layout: +The binary directory, $(bindir) contains user-visible +executables, notably ghc and ghci. +You should add it to your $PATH + + +On Unix, the user-invokable ghc invokes $(libdir)/ghc-version, +passing a suitable flag to tell ghc-version where +$(libdir) is. +Similarly ghci, except the extra flag --interactive is passed. + + +On Win32, the user-invokable ghc binary +is the Real Thing (no intervening +shell scripts or .bat files). +Reason: we sometimes invoke GHC with very long command lines, +and cmd.exe (which executes .bat files) +truncates them. Similarly ghci is a C wrapper program that invokes ghc --interactive +(passing on all other arguments), not a .bat file. + + + + + + The library directory + +The layout of the library directory, $(libdir) is almost identical on +Windows and Unix, as follows. Differences between Windows and Unix +are noted thus [Win32 only] and are commented below. $(libdir)/ @@ -762,7 +784,7 @@ Windows and Unix, as follows: layout: bin/ [Win32 only] User-visible binaries ghc.exe - ghci.bat + ghci.exe unlit Remove literate markup @@ -811,24 +833,8 @@ Windows and Unix, as follows: layout: HSlang.o not grok .a files yet) -Note that: +Note that: - -On Win32, the $(libdir)/bin directory contains user-visible binaries; -add it to your PATH. The ghci executable is a .bat -file which invokes ghc. - -The GHC executable is the Real Thing (no intervening -shell scripts or .bat files). -Reason: we sometimes invoke GHC with very long command lines, -and cmd.exe (which executes .bat files) -truncates them. [We assume people won't invoke ghci with very long -command lines.] - -On Unix, the user-invokable ghc invokes $(libdir)/ghc-version, -passing a suitable flag. - - $(libdir) also contains support @@ -865,6 +871,7 @@ with the Win32 distribution of GHC. with GHC, rather than assume some installed one. +