INSTALL
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:12k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. Brief Swarm Installation Instructions =====================================
  2. To build Swarm, there are four basic steps:
  3.         1. Identify the location of the required packages for Swarm.
  4.         2. Type "./configure", with the appropriate options (described
  5.            below) to configure the package for your system.
  6.         3. Type "make", to build the package.
  7.         4. Type "make install" to install programs and data files.
  8. Generic instructions for configuring and compiling GNU distributions
  9. are included after the following section.
  10. *****For MacOS X see macosx/INSTALL.MacOSX******
  11. Required and Optional Flags for Configuring Swarm =========================
  12.    Minimally, you can type: `./configure --with-defaultdir=/usr/local'
  13. if all the required packages (tk, tcl, libffi, png, zlib, and blt) are
  14. actually installed in in /usr/local.  The configure script will
  15. identify the specific paths, and you can type `make'and you are done.
  16.   However, on most machines, you will probably need to specify at
  17. least one additional option that the `configure' script cannot guess.
  18. 1. Most commonly-specified options:
  19. `--prefix' -- the location to which Swarm is to be installed.  By
  20. default, this is /usr/local/bin, /usr/local/lib etc.
  21. `--enable-shared[=PKGS]' ---  build shared libraries [default=yes]  
  22. `--disable-shared' --- same as --enable-shared=no
  23. This version of Swarm can build `shared' libraries (sometimes called
  24. dynamic libraries), which significantly reduce the size of resulting
  25. executable files.  
  26. `--enable-onelib' --- build a single shared library instead of a hierarchy.
  27. *** Important note for SunOS/Solaris users!! ***
  28. As `configure' builds shared libraries by default, you should be sure
  29. that your system can support shared libraries.  At the time of
  30. writing, Swarm has been successfully built with shared libraries only
  31. on GNU/Linux systems.  If you are using SunOS/Solaris you should be
  32. sure set this to `--disable-shared' or `--enable-shared=no'.
  33. `--with-defaultdir=DIR' --- Uses DIR instead of prefix as default path.
  34. You can specify this option as the default location to search for
  35. required packages, and still override locations for individual
  36. packages which vary from the `usual' place of installation, with the
  37. options described below:
  38. `--with-tcldir=DIR' --- Use DIR/include and DIR/lib for Tcl.  
  39. `--with-tkdir=TKDIR' --- Use DIR/include and DIR/lib for Tk.  
  40. `--with-bltdir=DIR' --- Use DIR/include and DIR/lib for BLT.  
  41. `--with-ffidir=DIR' ---  Use DIR/include and DIR/lib for libffi
  42. `--with-zlibdir=DIR' --- Use DIR/include and DIR/lib for zlib
  43. `--with-pngdir=DIR' --- Use DIR/include and DIR/lib for png  
  44. These options specify parent directory location of include and lib
  45. directories, which contain the relevant include files and library file
  46. for each required package.
  47. 2. Less commonly-specified options:
  48. `--with-tclincludedir=DIR' --- Use DIR for Tcl header files.
  49. `--with-tkincludedir=DIR' --- Use DIR for Tk header files.  
  50. `--with-zlibincludedir=DIR' --- Use DIR for zlib include files    
  51. `--with-pngincludedir=DIR' --- DIR for PNG include files  
  52. These options can be used in conjunction with their respective
  53. --with-tcldir, --with-tkdir, --with-tcldir options, if their header
  54. files are for some reason installed in a different location to the
  55. libraries. This is sometimes the case with Debian or RedHat GNU/Linux
  56. distributions.
  57. `--with-tcllibname=NAME' --- Use -lNAME for Tcl   
  58. `--with-tklibname=NAME' --- Use -lNAME for Tk     
  59. `--with-bltlibname=NAME' --- Use -lNAME for BLT.  
  60. These options are useful if the name of the library differs from the
  61. name derived from the name of the option.  
  62. `--with-jdkdir=DIR' --- Use DIR for Java Development Kit.  
  63.                         Kaffe and Sun JDK 1.1 and 1.2 are supported.
  64. To to compile *without* Java support, you give configure the option:
  65. `--without-jdkdir'
  66. Further details on `configure' and standard GNU options are described
  67. in the generic installation instructions, below.
  68. Generic Installation Information
  69. ================================
  70.    These are generic installation instructions for all GNU `autoconf'
  71. packages.
  72.    The `configure' shell script attempts to guess correct values for
  73. various system-dependent variables used during compilation.  It uses
  74. those values to create a `Makefile' in each directory of the package.
  75. It may also create one or more `.h' files containing system-dependent
  76. definitions.  Finally, it creates a shell script `config.status' that
  77. you can run in the future to recreate the current configuration, a file
  78. `config.cache' that saves the results of its tests to speed up
  79. reconfiguring, and a file `config.log' containing compiler output
  80. (useful mainly for debugging `configure').
  81.    If you need to do unusual things to compile the package, please try
  82. to figure out how `configure' could check whether to do them, and mail
  83. diffs or instructions to the address given in the `README' so they can
  84. be considered for the next release.  If at some point `config.cache'
  85. contains results you don't want to keep, you may remove or edit it.
  86.    The file `configure.in' is used to create `configure' by a program
  87. called `autoconf'.  You only need `configure.in' if you want to change
  88. it or regenerate `configure' using a newer version of `autoconf'.
  89. The simplest way to compile this package is:
  90.   1. `cd' to the directory containing the package's source code and type
  91.      `./configure' to configure the package for your system.  If you're
  92.      using `csh' on an old version of System V, you might need to type
  93.      `sh ./configure' instead to prevent `csh' from trying to execute
  94.      `configure' itself.
  95.      Running `configure' takes awhile.  While running, it prints some
  96.      messages telling which features it is checking for.
  97.   2. Type `make' to compile the package.
  98.   3. Optionally, type `make check' to run any self-tests that come with
  99.      the package.
  100.   4. Type `make install' to install the programs and any data files and
  101.      documentation.
  102.   5. You can remove the program binaries and object files from the
  103.      source code directory by typing `make clean'.  To also remove the
  104.      files that `configure' created (so you can compile the package for
  105.      a different kind of computer), type `make distclean'.  There is
  106.      also a `make maintainer-clean' target, but that is intended mainly
  107.      for the package's developers.  If you use it, you may have to get
  108.      all sorts of other programs in order to regenerate files that came
  109.      with the distribution.
  110. Compilers and Options
  111. =====================
  112.    Some systems require unusual options for compilation or linking that
  113. the `configure' script does not know about.  You can give `configure'
  114. initial values for variables by setting them in the environment.  Using
  115. a Bourne-compatible shell, you can do that on the command line like
  116. this:
  117.      CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
  118. Or on systems that have the `env' program, you can do it like this:
  119.      env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
  120. Compiling For Multiple Architectures
  121. ====================================
  122.    You can compile the package for more than one kind of computer at the
  123. same time, by placing the object files for each architecture in their
  124. own directory.  To do this, you must use a version of `make' that
  125. supports the `VPATH' variable, such as GNU `make'.  `cd' to the
  126. directory where you want the object files and executables to go and run
  127. the `configure' script.  `configure' automatically checks for the
  128. source code in the directory that `configure' is in and in `..'.
  129.    If you have to use a `make' that does not supports the `VPATH'
  130. variable, you have to compile the package for one architecture at a time
  131. in the source code directory.  After you have installed the package for
  132. one architecture, use `make distclean' before reconfiguring for another
  133. architecture.
  134. Installation Names
  135. ==================
  136.    By default, `make install' will install the package's files in
  137. `/usr/local/bin', `/usr/local/man', etc.  You can specify an
  138. installation prefix other than `/usr/local' by giving `configure' the
  139. option `--prefix=PATH'.
  140.    You can specify separate installation prefixes for
  141. architecture-specific files and architecture-independent files.  If you
  142. give `configure' the option `--exec-prefix=PATH', the package will use
  143. PATH as the prefix for installing programs and libraries.
  144. Documentation and other data files will still use the regular prefix.
  145.    In addition, if you use an unusual directory layout you can give
  146. options like `--bindir=PATH' to specify different values for particular
  147. kinds of files.  Run `configure --help' for a list of the directories
  148. you can set and what kinds of files go in them.
  149.    If the package supports it, you can cause programs to be installed
  150. with an extra prefix or suffix on their names by giving `configure' the
  151. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  152. Optional Features
  153. =================
  154.    Some packages pay attention to `--enable-FEATURE' options to
  155. `configure', where FEATURE indicates an optional part of the package.
  156. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  157. is something like `gnu-as' or `x' (for the X Window System).  The
  158. `README' should mention any `--enable-' and `--with-' options that the
  159. package recognizes.
  160.    For packages that use the X Window System, `configure' can usually
  161. find the X include and library files automatically, but if it doesn't,
  162. you can use the `configure' options `--x-includes=DIR' and
  163. `--x-libraries=DIR' to specify their locations.
  164. Specifying the System Type
  165. ==========================
  166.    There may be some features `configure' can not figure out
  167. automatically, but needs to determine by the type of host the package
  168. will run on.  Usually `configure' can figure that out, but if it prints
  169. a message saying it can not guess the host type, give it the
  170. `--host=TYPE' option.  TYPE can either be a short name for the system
  171. type, such as `sun4', or a canonical name with three fields:
  172.      CPU-COMPANY-SYSTEM
  173. See the file `config.sub' for the possible values of each field.  If
  174. `config.sub' isn't included in this package, then this package doesn't
  175. need to know the host type.
  176.    If you are building compiler tools for cross-compiling, you can also
  177. use the `--target=TYPE' option to select the type of system they will
  178. produce code for and the `--build=TYPE' option to select the type of
  179. system on which you are compiling the package.
  180. Sharing Defaults
  181. ================
  182.    If you want to set default values for `configure' scripts to share,
  183. you can create a site shell script called `config.site' that gives
  184. default values for variables like `CC', `cache_file', and `prefix'.
  185. `configure' looks for `PREFIX/share/config.site' if it exists, then
  186. `PREFIX/etc/config.site' if it exists.  Or, you can set the
  187. `CONFIG_SITE' environment variable to the location of the site script.
  188. A warning: not all `configure' scripts look for a site script.
  189. Operation Controls
  190. ==================
  191.    `configure' recognizes the following options to control how it
  192. operates.
  193. `--cache-file=FILE'
  194.      Use and save the results of the tests in FILE instead of
  195.      `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
  196.      debugging `configure'.
  197. `--help'
  198.      Print a summary of the options to `configure', and exit.
  199. `--quiet'
  200. `--silent'
  201. `-q'
  202.      Do not print messages saying which checks are being made.  To
  203.      suppress all normal output, redirect it to `/dev/null' (any error
  204.      messages will still be shown).
  205. `--srcdir=DIR'
  206.      Look for the package's source code in directory DIR.  Usually
  207.      `configure' can determine that directory automatically.
  208. `--version'
  209.      Print the version of Autoconf used to generate the `configure'
  210.      script, and exit.
  211. `configure' also accepts some other, not widely useful, options.