INSTALL 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Scheme 48 installation instructions for Unix
  2. --------------------------------------------
  3. (for notes on Windows installation, check WINDOWS.txt)
  4. A typical installation would proceed as follows: download the .tgz
  5. file to your /tmp directory, and then issue the following shell
  6. commands:
  7. cd /usr/local/src
  8. gunzip </tmp/scheme48-1.8.tgz | tar xf -
  9. cd scheme48-1.8
  10. ./configure
  11. make install
  12. Then simply do
  13. scheme48
  14. to run it.
  15. This assumes that the logged-in user has write access to the
  16. /usr/local directory tree, and that /usr/local/bin is in the Scheme 48
  17. user's PATH. If not, replace "cd /usr/local/src" with "cd DIR" where
  18. DIR is the directory into which to extract the scheme48 source tree,
  19. issue the command "make" instead of "make install" to build it, and
  20. ./go
  21. to run it.
  22. Attached to this file is generic information about the 'configure'
  23. script. The 'configure' script that ships with Scheme 48 has some
  24. specific options, however:
  25. --enable-gc=<gc>
  26. configures Scheme 48 with a specific garbage collector (GC). Two GCs
  27. ship with the system "twospace" and "bibop": The twospace GC is the
  28. default---it is simple, but has inferior performance and requires a
  29. fixed limit on the heap size. The bibop GC is much more sophisticated
  30. and faster, and it allows specifying "-h 0" on the command line,
  31. meaning that the heap will expand as necessary to accomodate the
  32. program. Note that this means that a program with, say, infinite
  33. non-tail recursion will grow the heap indefinitely.
  34. --enable-universal-binary
  35. works only on Apple Macs and means that Scheme 48 will be built as a
  36. Universal Binary that can run on both PowerPC and Intel Macs.
  37. --enable-force-32bit
  38. forces configuration for a 32-bit executable on a 64-bit system.
  39. For more information on how to customize an installation of Scheme 48,
  40. see doc/install.txt.
  41. ----------------
  42. This is a generic INSTALL file for utilities distributions.
  43. If this package does not come with, e.g., installable documentation or
  44. data files, please ignore the references to them below.
  45. The `configure' shell script attempts to guess correct values for
  46. various system-dependent variables used during compilation, and
  47. creates the Makefile(s) (one in each subdirectory of the source
  48. directory). In some packages it creates a C header file containing
  49. system-dependent definitions. It also creates a file `config.status'
  50. that you can run in the future to recreate the current configuration.
  51. To compile this package:
  52. 1. Configure the package for your system.
  53. Normally, you just `cd' to the directory containing the package's
  54. source code and type `./configure'. If you're using `csh' on an old
  55. version of System V, you might need to type `sh configure' instead to
  56. prevent `csh' from trying to execute `configure' itself.
  57. Running `configure' takes a minute or two. While it is running, it
  58. prints some messages that tell what it is doing. If you don't want to
  59. see the messages, run `configure' with its standard output redirected
  60. to `/dev/null'; for example, `./configure >/dev/null'.
  61. To compile the package in a different directory from the one
  62. containing the source code, you must use a version of `make' that
  63. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  64. directory where you want the object files and executables to go and run
  65. the `configure' script. `configure' automatically checks for the
  66. source code in the directory that `configure' is in and in `..'. If
  67. for some reason `configure' is not in the source code directory that
  68. you are configuring, then it will report that it can't find the source
  69. code. In that case, run `configure' with the option `--srcdir=DIR',
  70. where DIR is the directory that contains the source code.
  71. By default, `make install' will install the package's files in
  72. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  73. installation prefix other than `/usr/local' by giving `configure' the
  74. option `--prefix=PATH'. Alternately, you can do so by consistently
  75. giving a value for the `prefix' variable when you run `make', e.g.,
  76. make prefix=/usr/gnu
  77. make prefix=/usr/gnu install
  78. You can specify separate installation prefixes for
  79. architecture-specific files and architecture-independent files. If you
  80. give `configure' the option `--exec-prefix=PATH' or set the `make'
  81. variable `exec_prefix' to PATH, the package will use PATH as the prefix
  82. for installing programs and libraries. Data files and documentation
  83. will still use the regular prefix. Normally, all files are installed
  84. using the same prefix.
  85. Some packages pay attention to `--with-PACKAGE' options to
  86. `configure', where PACKAGE is something like `gnu-as' or `x' (for the X
  87. Window System). The README should mention any `--with-' options that
  88. the package recognizes.
  89. `configure' ignores any other arguments that you give it.
  90. On systems that require unusual options for compilation or linking
  91. that the package's `configure' script does not know about, you can give
  92. `configure' initial values for variables by setting them in the
  93. environment. In Bourne-compatible shells, you can do that on the
  94. command line like this:
  95. CC='gcc -traditional' LIBS=-lposix ./configure
  96. Here are the `make' variables that you might want to override with
  97. environment variables when running `configure'.
  98. For these variables, any value given in the environment overrides the
  99. value that `configure' would choose:
  100. - Variable: CC
  101. C compiler program. The default is `cc'.
  102. - Variable: INSTALL
  103. Program to use to install files. The default is `install' if you
  104. have it, `cp' otherwise.
  105. For these variables, any value given in the environment is added to
  106. the value that `configure' chooses:
  107. - Variable: DEFS
  108. Configuration options, in the form `-Dfoo -Dbar...'. Do not use
  109. this variable in packages that create a configuration header file.
  110. - Variable: LIBS
  111. Libraries to link with, in the form `-lfoo -lbar...'.
  112. If you need to do unusual things to compile the package, we encourage
  113. you to figure out how `configure' could check whether to do them, and
  114. mail diffs or instructions to the address given in the README so we
  115. can include them in the next release.
  116. 2. Type `make' to compile the package. If you want, you can override
  117. the `make' variables CFLAGS and LDFLAGS like this:
  118. make CFLAGS=-O2 LDFLAGS=-s
  119. 3. If the package comes with self-tests and you want to run them,
  120. type `make check'. If you're not sure whether there are any, try it;
  121. if `make' responds with something like
  122. make: *** No way to make target `check'. Stop.
  123. then the package does not come with self-tests.
  124. 4. Type `make install' to install programs, data files, and
  125. documentation.
  126. 5. You can remove the program binaries and object files from the
  127. source directory by typing `make clean'. To also remove the
  128. Makefile(s), the header file containing system-dependent definitions
  129. (if the package uses one), and `config.status' (all the files that
  130. `configure' created), type `make distclean'.
  131. The file `configure.in' is used to create `configure' by a program
  132. called `autoconf'. You only need it if you want to regenerate
  133. `configure' using a newer version of `autoconf'.