source: git/README @ b29153

spielwiese
Last change on this file since b29153 was 0da86f, checked in by Hans Schönemann <hannes@…>, 16 years ago
*** empty log message *** git-svn-id: file:///usr/local/Singular/svn/trunk@10694 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 6.5 KB
Line 
1How to compile SINGULAR from sources
2************************************
3
4SINGULAR is a Computer Algebra system for polynomial computations with
5special emphasize on the needs of commutative algebra, algebraic
6geometry, singularity theory and polynomial system solving. For a more
7detailed overview of SINGULAR, see
8     `http://www.singular.uni-kl.de/Overview/'
9
10So far, there are only versions for Linux, HPUX, SunOS, IRIX, AIX,
11FreeBSD 4.x/5.x, MacOS X, and Windows 95/98/NT/2K/XP.
12
13Version 2-0-2 was the last version for MacOS 9.
14
15The Windows version also runs on Windows Vista, provided
16that "rebase all" was done after installing Cygwin.
17
18Note for Singular-3-0-x:
19Currently, there are only only "complete" archives: Singular-3-0-x-x.tar.gz
20which contain all needed files.
21
22Compiling SINGULAR for a Unix platform
23======================================
24
25Make sure that you have approximately 120 MByte of free disk space and
26follow these steps.
27(the "optional" for bison applies to version 3-0-3-1 and later)
28
29  1. Make sure that you have the following software (the list may be
30     incomplete):
31       1.   general unix utilities: grep, test, sed, cp, mv, gzip,
32          uudecode, ...
33
34       2.   autoconf
35
36       3.   gnu-make
37
38       4.   gcc, g++ (version 2.95.3 preferred,   but gcc version 2.7.2
39          to 2.95.4, egcs 1.0.3 and 1.1.2 should work,   gcc 2.96 does
40          not work)
41          gcc 3.0 does not work, gcc 3.1.x, gcc 3.2.x, gcc 3.3.x/3.4.x should
42          gcc 4.x: beginnig with Singular-3-0-0-4, for some architectures
43                   beginning with Singular-3-0-2: for all architectures
44
45       5.  optional: if you want to change Singular/grammar.y:
46            bison (version >= 1.2.2)
47            (bison (GNU Bison) 1.75 seems not to work)
48            (version 1.75 is supported in Singular 2-0-4a and newer)
49           
50            Remark:
51              bison 1.875 on solaris produces code which gcc does not accept
52
53       6.    optional: if you want to change Singular/scanner.l
54             or modules/modgen/scanner.l:
55             flex (version >=2.4, <=2.5.4)
56
57       7.   perl (version >=5)
58
59       8.   library gmp (version >=3.1.1)
60            (version 4.x.x is supported in Singular 2-0-4 and newer)
61
62       9.   library libncurses or libtermcap or libcurses
63
64      10.   (optional) library libreadline
65            (required on linux glibc systems)
66
67      11.   (optional, required to build the documentation:)
68          latex2html, tex, texi2html, texinfo
69          (your latex2html should produce gif files, not png files)
70
71  2. (optional, required for MP:)
72     make sure that you can log in to your computer via rsh/remsh or
73     ssh without a password (check .rhosts/.shosts);
74     (in versions before 3-0-0: the
75     configure script stops while checking this: if you cannot fix it,
76     simply kill the rsh/ssh-processes - the configure will then
77     disable this particulare feature)
78     The following should work:
79     rsh localhost uname
80     ssh localhost uname
81     rsh `hostname` uname
82     ssh `hostname` uname
83
84  3. You need to download all of the .tar.gz-files
85     (since 3-0-0 we have only one large source .tar.gz-file)
86
87  4. create a new working directory
88
89  5. unpack all packages into that working directory
90
91  6. (optional, for porting to a unknown machine:) fix ./singuname.sh
92     not to report something unknown, but to recognize the machine
93
94  7. run ./configure
95     (try ./configure -help, ./omalloc/configure -help, ./MP/configure
96     -help, ./factory/configure -help, ./Singular/configure -help for a
97     list of all options of configure)
98
99     BEWARE: some of the option are for testing only,
100     they will usually not work in general:
101     --with-Plural,--with-plural (you need a Singuilar version > 2.1.2 for this)
102       (standard since  version 3-0-0)
103     --with-sgroup (you need the sgroup programs for this)
104     --with-smallgmp (not maintained), removed in 3-0-0
105     --with-namespaces (you need a Singuilar version > 2.1.x for this)
106       (standard since  version 3-0-0)
107     
108
109  8. make install (resp. gmake install - the make program must be
110     GNU-Make) the make process will (hopefully) build:
111       1.   omalloc: the memry management routines (required)
112
113       2.   MP: Multi-Protocoll (optional)
114
115       3.   NTL (optional, but strongly recommended)
116
117       4.   factory (optional, but strongly recommended)
118
119       5.   libfac (optional, but strongly recommended)
120
121       6.   kernel, Singular (Kernel, required)
122
123       7.   only for share-dist: doc (only possible, if all optional packages are included)
124
125       8.   only for share-dist: emacs (only possible, if doc was build)
126
127       9.   IntegerProgramming
128
129  9. if you want to make any change in the directory Singular, run make
130     depend there
131
132 10. to install the resulting files at any other place in the system,
133     run
134     make bindist sharedist
135     (sharedist can only be build if doc was build sucessfully) and
136     install the resulting .tar.gz files as explained for the binary
137     distribution
138     The sharedist-result does not depend on your machine:
139     so you can also download our version of it
140
141 11. if you compiled Singular for a non-standard architecture and you
142     are willing to share your porting effort, upload the changed
143     sources and the resulting binaries to
144     `ftp://www.mathematik.uni-kl.de/pub/Incoming' and send us an email
145     about it (Singular@mathematik.uni-kl.de)
146
147 12. bug-fixes or other improvements to the source code are welcome
148
149Notes for specific platforms
150============================
151
152   - Windows (Cygwin):
153     ./configure -with-malloc=system
154     Windows Vista:
155     run         
156       rebaseall
157     before trying anything else
158
159   - MacOS X:
160     you need a file values.h where MP can find it (we copied one from
161     Linux)
162     ./configure -with-malloc=system
163
164   - FreeBSD 4.x/5.x:
165     you need a file values.h where MP can find it (we copied one from
166     Linux)
167     ./configure -with-malloc=system
168
169   - Solaris with CC/cc
170     - you need to set CONFIG_SHELL to /bin/bash
171      (/bin/sh misses some substitutions in the generated Makefiles)
172     - set CC = "cc -xarch=v9"
173          CXX = "CC -xarch=v9"
174          CFLAGS          = -O
175          CXXFLAGS        = -O2
176     - configure with
177      ./configure  --without-dynamic-kernel --without-MP
178     
179
180Compiling SINGULAR for a Non-Unix platform
181==========================================
182
183This is a non-trivial task. Please contact us directly.
184(`mailto:Singular@mathematik.uni-kl.de')
185
186GOOD LUCK and ENJOY!  Your SINGULAR team.
Note: See TracBrowser for help on using the repository browser.