source: git/Singular/INSTALL @ bb3c2d3

spielwiese
Last change on this file since bb3c2d3 was bb3c2d3, checked in by Olaf Bachmann <obachman@…>, 27 years ago
* Changed test a little git-svn-id: file:///usr/local/Singular/svn/trunk@272 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 11.8 KB
Line 
1                         Singular version 1.0
2                     University of Kaiserslautern
3     Department of Mathematics (or, Centre for Computer Algebra)
4          Authors: G.-M. Greuel, G. Pfister, H. Schoenemann
5                  (C) 1986-1997 All Rights Reserved
6
7                INSTALLATION INSTRUCTIONS FOR SINGULAR
8                ======================================
9
10This file contains instructions on how to install Singular. For
11general information about Singular, see the file 'README' contained in this
12directory. For copying informations, see the file 'COPYING' contained
13in this directory. For comments, problems or bugs, please send mail to
14singular@mathematik.uni-kl.de. If you receive this file as part of a
15complete Singular distribution, see also the README, COPYING, and
16INSTALL files contained in the top directory of the full Singular
17distribution.
18
19Installation for the Impatient
20==============================
21Being in the directory which contains this file, type
22
23  ./configure
24  make
25
26Basic Installation
27==================
28
29
30The `configure' shell script in this directory attempts to guess
31correct values for various system-dependent variables used during
32compilation.  It uses those values to create the `Makefile' from the
33file 'Makefile.in' and the file 'mod2.h' (which contains
34system-dependent definitions) from the file 'mod2.h.in'. Finally, it
35creates a shell script `config.status' that you can run in the future
36to recreate the current configuration, a file `config.cache' that
37saves the results of its tests to speed up reconfiguring, and a file
38`config.log' containing compiler output (useful mainly for debugging
39`configure').
40
41The file `configure.in' is used to create `configure' by a program
42called `autoconf'.  You only need `configure.in' if you want to change
43it or regenerate `configure' using a newer version of `autoconf'.
44
45The simplest way to compile Singular is:
46
47  1. `cd' to the directory containing the Singular's source code and type
48     `./configure' to configure the package for your system.  If you're
49     using `csh' on an old version of System V, you might need to type
50     `sh ./configure' instead to prevent `csh' from trying to execute
51     `configure' itself.
52
53     Running `configure' takes awhile.  While running, it prints some
54     messages telling which features it is checking for.
55
56  2. Type `make' to compile Singular.
57
58  3. Optionally, type `make check' to run the self-tests that come with
59     the Singular (in the subdirectory tests).
60
61  4. Type `make install' to install the (executable) Singular program,
62     Singular's info files (from the subdirectory docs), and
63     Singular's program libraries written in Singular's
64     architecture-independent and interpreted programming language
65     (from the subdirectory LIB).
66
67  5. You can remove the program binaries and object files from the
68     source code directory by typing `make clean'.  To also remove the
69     files that `configure' created (so you can compile the package for
70     a different kind of computer), type `make distclean'.  There is
71     also a `make maintainer-clean' target, but that is intended mainly
72     for the package's developers.  If you use it, you may have to get
73     all sorts of other programs in order to regenerate files that came
74     with the distribution.
75
76  6. Other make targets include:
77     'dist'      : Creates a distribution of all source files of
78                   Singular.
79     'TAGS'      : Creates/updates a tags table for Singular's source
80                   files.
81     'info'      : Regenerates Singular's Info file.
82     'dvi'       : Generates the file docs/Singular.dvi -- a DVI file
83                   of Singular's user manual
84     'uninstall' : Deletes all installed files that the 'install'
85                   target created (i.e. Singular's executable program,
86                   Singular's info file, and Singular's libraries)
87     'check'     : Tests basic Singular functionality
88
89Compilers and Options
90=====================
91
92You need an ANSI-C++ and ANSI-C compiler for compiling Singular. We
93strongly recommend that you use the GNU C/C++ (gcc) compiler. If you
94have gcc installed on your system, configure will automatically find
95and use it for building Singular. Otherwise, configure will try to
96find another ANSI-C and ANSI-C++ compiler. To use explicitely use an
97alternative compiler, or to set some unusual options for compilation
98or linking that the `configure' script does not know about, you can
99give `configure' initial values for variables by setting them in the
100environment.  Using a Bourne-compatible shell, you can do that on the
101command line like this:
102     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
103     CXX=CC CXXFLAGS=+O3 LIBS=-liostream ./configure
104
105Or on systems that have the `env' program, you can do it like this:
106     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
107
108
109Installation Names
110==================
111
112By default, `make install' will install the Singular program in
113`/usr/local/bin', Singular's info files in `/usr/local/info', and
114Singular's program libraries in '/usr/local/share'.  You can
115specify an installation prefix other than `/usr/local' by giving
116`configure' the option `--prefix=PATH'. You can specify an alternative
117directory where the Singular program is installed by giving configure
118the option `--bindir=PATH'. For Singular's info files, use
119'--infodir=PATH' and for Singular's program libraries, use
120'--datadir=PATH'. Make sure that PATH is an _absolute_ (not relative)
121pathname.
122
123
124Optional Features
125=================
126
127Singular's configure script pays attention to the following
128`--with-PACKAGE' options where PACKAGE can be:
129
130  'readline' : Uses the readline library for some fancy display.
131               Requires that libreadline.a and the readline header
132               files are installed on your system. If these files were
133               not found, then Singular is build without readline.
134
135  'gmp'      : Uses the gmp (Gnu Multiple Precision) library for
136               integer arithmetic. Requires that libgmp.a and gmp.h
137               are installed on your system. If these files were not
138               found, then Singular is buid with its internal integer
139               arithmetic which is not as fast as the arithmetic
140               provided by gmp.
141
142  'dbm'      : Uses the dbm library for DBM links. Requires that
143               libdbm.a or libgdbm.a is installed on your system. If
144               this library is not found, then Singular is built
145               without DBM and DBM links are disabled.
146
147  'MP'       : Uses the MP library for MP links. Requires that
148               libgmp.a, libMP.a, libMPT.a and gmp.h, MP.h, MPT.h are
149               installed on your system. If these files are not found,
150               then Singular is built without MP, and MP links ar disabled.
151
152  'factory'  : Uses the Factory library for polynomial
153               factorizations. Requires that libsingcf.a, factory.h
154               and the factory template files are installed on your
155               system. If these files are not found, then Singular is
156               built without factory, and polynomial factorization
157               routines are disabled.
158
159  'libfac'   : Uses the libfac library for characteristic set
160               computations. Requires libsingfac.a and libfac.h to be
161               installed on your system. If these files are not found,
162               then Singular is built without libfac and
163               characteristic set routines are disabled.
164
165By default, configure runs as if all the above '--with-PACKAGE'
166options were given and searches through the given includedir and the
167system's default include directories for header files, and through the
168given libdir and through the system's default library directory for
169the library files. If one of the requirements for a PACKAGE is not
170met, configure prints a warning message and builds Singular
171without the respective PACKAGE, disabling its functionality. To
172explicitly built Singular without one of the above PACKAGEs, give
173configure (an) appropriate '--without-PACKAGE' option(s). See the
174README file about instructions on how to obtain the above PACKAGEs.
175
176
177System Requirements
178===================
179
180The following requirements have to be met by your system, so that you
181can build Singular:
182  1. The condition (sizeof(int) == 4) has to be true.
183  2. The condition (sizeof(void*) == sizeof(long)) has to be true.
184  3. The condition (-2 >> 1 == -1) has to be true.
185  4. The headers limits.h and unistd.h have to be installed.
186  5. The standard C headers and libraries have to be installed.
187
188
189Operation Controls
190==================
191
192   `configure' recognizes the following options to control how it
193operates.
194
195`--cache-file=FILE'
196     Use and save the results of the tests in FILE instead of
197     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
198     debugging `configure'.
199
200
201`--quiet'
202`--silent'
203`-q'
204     Do not print messages saying which checks are being made.
205
206`--version'
207     Print the version of Autoconf used to generate the `configure'
208     script, and exit.
209
210`--help'
211     Prints  the following summary of the options to `configure', and exits.
212
213Usage: configure [options] [host]
214Options: [defaults in brackets after descriptions]
215Configuration:
216  --cache-file=FILE       cache test results in FILE
217  --help                  print this message
218  --no-create             do not create output files
219  --quiet, --silent       do not print `checking...' messages
220  --version               print the version of autoconf that created configure
221Directory and file names:
222  --prefix=PREFIX         install architecture-independent files in PREFIX
223                          [/mnt/amd/users/urmel/singular/obachman/Singular/Singular/..]
224  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
225                          [same as prefix]
226  --bindir=DIR            user executables in DIR [EPREFIX/bin]
227  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
228  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
229  --datadir=DIR           read-only architecture-independent data in DIR
230                          [PREFIX/share]
231  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
232  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
233                          [PREFIX/com]
234  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
235  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
236  --includedir=DIR        C header files in DIR [PREFIX/include]
237  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
238  --infodir=DIR           info documentation in DIR [PREFIX/info]
239  --mandir=DIR            man documentation in DIR [PREFIX/man]
240  --srcdir=DIR            find the sources in DIR [configure dir or ..]
241  --program-prefix=PREFIX prepend PREFIX to installed program names
242  --program-suffix=SUFFIX append SUFFIX to installed program names
243  --program-transform-name=PROGRAM
244                          run sed PROGRAM on installed program names
245Host type:
246  --build=BUILD           configure for building on BUILD [BUILD=HOST]
247  --host=HOST             configure for HOST [guessed]
248  --target=TARGET         configure for TARGET [TARGET=HOST]
249Features and packages:
250  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
251  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
252  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
253  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
254  --x-includes=DIR        X include files are in DIR
255  --x-libraries=DIR       X library files are in DIR
256--enable and --with options recognized:
257  --without-readline   do not use readline for fancy display
258  --without-gmp        do not use gmp library
259  --without-MP         do not use MP (disables MP links)
260  --without-dbm        do not use dbm (disables DBM links)
261  --without-dld        do not use dld (disables dynamic linking)
262  --without-factory    do not use factory (disables poly factorization)
263  --without-libfac     do not use libfac (disables primary decompositions)
264
Note: See TracBrowser for help on using the repository browser.